« Bugzilla Issues Index
#4510 — 19.2.1.1.1 CreateDynamicFunction: Early ReferenceErrors not allowed, changed to SyntaxError
- bug_id:
4510
- creation_ts:
2015-08-21 14:13:00 -0700
- short_desc:
19.2.1.1.1 CreateDynamicFunction: Early ReferenceErrors not allowed, changed to SyntaxError
- delta_ts:
2015-11-11 09:30:37 -0800
- product:
ECMA-262 Edition 6
- component:
technical issues
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- cc:
brterlso
- commentid:
14671
- comment_count:
0
- who:
André Bargull
- bug_when:
2015-08-21 14:13:42 -0700
19.2.1.1.1 RuntimeSemantics: CreateDynamicFunction(constructor, newTarget, kind, args)
Steps 11 and 13 should allow to throw early ReferenceErrors.
Also: As currently specified, implementations are required to parse the body before the parameters. That means `Function("a=0++", "<invalid>")` throws a SyntaxError per the current spec, but implementations should be allowed to throw a ReferenceError if they parse the parameters before the body.
- commentid:
14895
- comment_count:
1
- who:
Brian Terlson
- bug_when:
2015-11-11 09:30:37 -0800
Fixed in ES2016 Draft (1b2ecf4).