[Webkit-unassigned] [Bug 92817] use strict, string property assignment throws TypeError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 1 13:00:11 PDT 2012


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





--- Comment #1 from Oliver Hunt <oliver at apple.com>  2012-08-01 13:00:13 PST ---
My reading of ECMA-262 says that comments are not relevant in determination of strict mode:
14.1 Directive Prologues and the Use Strict Directive
A Directive Prologue is the longest sequence of ExpressionStatement productions occurring as the initial SourceElement productions of a Program or FunctionBody and where each ExpressionStatement in the sequence consists entirely of a StringLiteral token followed a semicolon. The semicolon may appear explicitly or may be inserted by automatic semicolon insertion. A Directive Prologue may be an empty sequence.
A Use Strict Directive is an ExpressionStatement in a Directive Prologue whose StringLiteral is either the exact character sequences "use strict" or 'use strict'. A Use Strict Directive may not contain an EscapeSequence or LineContinuation.

Comments of any form are not statement expressions (they are explicitly treated as a single space character)

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