yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

keywords as properties and methods #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
js2-mode treats this as an error, and while I haven't actually read this
part of the js spec, Spidermonkey/Firefox doesn't:

var foo = {};
foo.return = 42;
foo.import();

This wouldn't come up much, except that Firefox 3 now has a way to import
scripts via Components.utilities.import() that is becoming more and more
common.

Original issue reported on code.google.com by dlb...@gmail.com on 10 Apr 2008 at 11:54

GoogleCodeExporter commented 8 years ago
oops, this is a dup of #4.

Original comment by dlb...@gmail.com on 14 Apr 2008 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 14 Apr 2008 at 11:34