I am trying to use a generator declared with function*
in Intel XDK. The simulate function in XDK is supposedly built on Chromium, though I am unable to tell which version ('about' box etc give no hint).
This thread hints that such a thing should be possible yet when running the app in XDK Simulator I get Syntax error: unexpected token *
on the line where function*
appears.
How can I enable the necessary functionality in the simulator?
From the Simulate tab, start the simulator and open the debug console (using the "bug" icon on the Simulate tab toolbar). Type top.process.versions
and you'll get an object containing the versions of the significant subsystems in the XDK. The XDK is built on top of node-webkit.
For example, in the 3759 release of the XDK, you'll see an object that looks like this:
JavaScript
top.process.versions
Object {http_parser: "2.3", node: "0.12.7", v8: "3.28.71.19", uv: "1.6.1", zlib: "1.2.5"…}
chromium: "38.0.2125.122"
http_parser: "2.3"
modules: "14"
node: "0.12.7"
node-webkit: "0.11.7-rc10-dev"
nw-commit-id: "035e7e1-0108df2-b51d814-e04a66a-984caaa-cdd879e"
openssl: "1.0.1p"
uv: "1.6.1"
v8: "3.28.71.19"
zlib: "1.2.5"