On 9/17/15 8:26 PM, Shu-yu Guo wrote:
The first call to f() does not throw.
It actually does, because the bareword lookup for "x" fails. You get "ReferenceError: x is not defined".
If you replaced "x" with "window.x" or "self.x" or "this.x" or something I think you'd get the behavior you describe.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform