What version of Javascript is supported in node.js -
i'm getting started node.js , i'm having hard time figuring out version of javascript supported node makes difficult figuring out features can use. here's know.
- node uses v8
- v8 implements ecmascript specified in ecma-262, 3rd edition
- ecma-262, 3rd edition javascript 1.5
given this, assume can use javascript 1.5 compatible code in node. however, turns out can use array.foreach
, among other constructs, though according mdc isn't available until javascript 1.6 -- ecma-262, 5th edition.
where going wrong? there document somewhere details available language features?
this matrix (v8 follows webkit column closely) seems pretty answer question "what features can use?" can't find canonical answer "what version of javascript supported?" far can tell, best answer this: ecma-262 3rd edition supported, many features of 5th edition supported.
there's explanation of why v8 follows webkit , javascriptcore functionality on this thread.
Comments
Post a Comment