Issue metadata
Sign in to add a comment
|
Incorrect Completion Value for ClassDeclaration statement
Reported by
joepec...@gmail.com,
Apr 29 2017
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36
Steps to reproduce the problem:
eval(`1; class C {}`)
What is the expected behavior?
1
What went wrong?
C
Did this work before? N/A
Chrome version: 58.0.3029.81 Channel: stable
OS Version: OS X 10.12.4
Flash Version:
https://tc39.github.io/ecma262/#sec-class-definitions-runtime-semantics-evaluation
,
Apr 29 2017
,
Apr 29 2017
,
May 1 2017
This is working as intended, as step 2 of Evaluation for ClassDefinition (from the link above) is "Return NormalCompletion(empty)". It appears Chakra and JSC get this wrong, but V8 agrees with SpiderMonkey.
,
May 1 2017
In Chrome: Version 58.0.3029.81 (64-bit)
> eval(`1; class C {}`)
class C {}
How is that working as intended? Am I using an outdated version of Chrome?
,
May 1 2017
Ah, yes, this is actually "Fixed", not "WontFix". neis@ fixed this in https://chromium-review.googlesource.com/446349 |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 Deleted