This code is not parsed correctly:
var object = {
test: function() "test",
test2: function() "test2",
get test3() "test3"
};
js2-mode says "missing ; before statement" and "syntax error" on it.
This code uses expression closures
(http://mdn.beonex.com/en/New_in_JavaScript_1.8#Expression_closures_%28Merge_int
o_own_page.2fsection%29).
Expression closure are parsed correctly when they are not inside an object
however:
This code is parsed correctly by js2-mode (20090723):
function test1() 32;
function test2() "test";
Original issue reported on code.google.com by f.qu...@gmail.com on 28 Sep 2010 at 10:34
Original issue reported on code.google.com by
f.qu...@gmail.com
on 28 Sep 2010 at 10:34