JSDT Object Literals [message #1713927] |
Sun, 08 November 2015 15:39 |
wnderer wanderer Messages: 1 Registered: November 2015 |
Junior Member |
|
|
I'm working through some of the Firefox examples and this code generates JSDT errors.
const {Cc, Ci} = require("chrome");
var downloadManager = Cc["@mozilla.org/download-manager;1"]
.getService(Ci.nsIDownloadManager);
The first line gives the error
- Syntax error on token "}", delete
this token
The last line gives the error
- Syntax error, insert "}" to complete Block
I believe JSDT is wrong and the code is correct.
Installation details
Eclipse IDE for C/C++ Developers 4.4.2.20150219-0708 epp.package.cpp
JavaScript Development Tools 1.5.2.v201401171657-7H7FFhXFC7sReuSlgtfhew org.eclipse.wst.jsdt.feature.feature.group Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.04188 seconds