[Webkit-unassigned] [Bug 47672] ES5 strict mode bugs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 18 13:04:38 PDT 2010


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





--- Comment #7 from kangax <kangax at gmail.com>  2010-10-18 13:04:38 PST ---
Hey Oliver.

I don't have this fresh build yet, but the previous one seems to also fail to set strict mode for eval code (in certain cases). For example:

(function(){ "use strict"; eval('with({ }) { }') })(); // no error

To quote 10.1.1:

"Eval code is strict eval code if it begins with a Directive Prologue that contains a Use Strict Directive or if the call to eval is a direct call (see 15.1.2.1.1) to the eval function that is contained in strict mode code."

Note "direct call [...] contained in strict mode code". So based on my understanding (and actually, FF4 behavior) this should throw error, but currently doesn't.

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