Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSDT Object Literals
JSDT Object Literals [message #1713927] Sun, 08 November 2015 15:39
wnderer wanderer is currently offline wnderer wandererFriend
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
Previous Topic:Deployment Assembly
Next Topic:Cannot change version of project facet EAR to 6.0
Goto Forum:
  


Current Time: Tue Oct 15 03:35:57 GMT 2024

Powered by FUDForum. Page generated in 0.04188 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top