« Bugzilla Issues Index
#3211 — 10.2.1 says function declarations and expressions do NOT inherit strict mode
- bug_id:
3211
- creation_ts:
2014-09-04 13:13:00 -0700
- short_desc:
10.2.1 says function declarations and expressions do NOT inherit strict mode
- delta_ts:
2014-10-14 15:17:59 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 27: August 24, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Gabe Levi
- assigned_to:
Allen Wirfs-Brock
- commentid:
10153
- comment_count:
0
- who:
Gabe Levi
- bug_when:
2014-09-04 13:13:31 -0700
The problem sentence is
Function code that is part of a FunctionDeclaration, FunctionExpression, GeneratorDeclaration, GeneratorExpression, MethodDefinition, or ArrowFunction is strict function code if its GeneratorDeclaration, GeneratorExpression, MethodDefinition, or ArrowFunction is contained in strict mode code or if its FunctionBody begins with a Directive Prologue that contains a Use Strict Directive.
The second list in that sentence is missing FunctionDeclaration and FunctionExpression. As written, it claims that function declarations and expressions are only strict if they have a Use Strict Directive
- commentid:
10158
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-09-05 16:11:54 -0700
fixed in rev28 editor's draft
- commentid:
10466
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-10-14 15:17:59 -0700
fixed in rev28