[Webkit-unassigned] [Bug 48630] ES5 Strict mode: OctalEscapeSequence in string literals

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 29 10:37:19 PDT 2010


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


Oliver Hunt <oliver at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Oliver Hunt <oliver at apple.com>  2010-10-29 10:37:19 PST ---
Hahah, i just worked out why this is passing, and why that is correct behaviour.
You have an octal escape in:
eval('"use strict"; "\101";');

The escape is parsed in the context of the function containing eval, so eval sees
"use strict"; "A";

as its input.

The test should be
eval('"use strict"; "\\101";');

Which throws a syntax error as expected.

Thanks for these bug reports by the way :D

-- 
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