[Webkit-unassigned] [Bug 123506] JavaScript parser bug

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 31 19:37:45 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=123506





--- Comment #3 from Oliver Hunt <oliver at apple.com>  2013-10-31 19:36:31 PST ---
(In reply to comment #0)
> // fails with SyntaxError: Expected token ')'
> ( function(){ return this || eval('this'); }().x = "y" );
This is incorrectly propagating parser state out of the function body.

> 
> // fails with SyntaxError: Unexpected token '='
> 1, function(){ return this || eval('this'); }().x = "y";

This is a correct failure.  The error message is just really bad

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list