Closed
Bug 863810
Opened 11 years ago
Closed 10 years ago
Error when using `Components` as a variable name
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: evold, Unassigned)
References
Details
I have a module which is does this: const { Cu, components: const { Cu, components: Components } = require('chrome') } = require('chrome'); if (Components.isSuccessCode) {...} and I get the following error when I try `cfx run`: The following lines from file /.../getContents.js: 17: if (!Components.isSuccessCode(aStatusCode)) { use 'Components' to access chrome authority. To do so, you need to add a line somewhat like the following: const {components} = require("chrome"); Then you can use any shortcuts to its properties that you import from the 'chrome' module ('Cc', 'Ci', 'Cm', 'Cr', and 'Cu' for the 'classes', 'interfaces', 'manager', 'results', and 'utils' properties, respectively. And `components` for `Components` object itself). This shouldn't happen.
Priority: -- → P3
Reporter | ||
Comment 1•10 years ago
|
||
Sorry we won't be releasing any new versions of cfx, jpm is the replacement https://www.npmjs.com/package/jpm
You need to log in
before you can comment on or make changes to this bug.
Description
•