Issue metadata
Sign in to add a comment
|
eval returns undefined for function/class definitions on Canary
Reported by
m.go...@gmail.com,
May 5 2017
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36 Steps to reproduce the problem: 1. Open https://jsfiddle.net/hcx1f972/2/ 2. 3. What is the expected behavior? It should say "PASS". What went wrong? I says "FAIL". `eval` returns `undefined`. The same happens if you substitute the function definition for a class definiton, e.g. "class C {}". Did this work before? Yes It works fine on 58.0.3029.96. Chrome version: 60.0.3090.0 Channel: canary OS Version: OS X 10.12.4 Flash Version: This breaks AngularJS unit tests.
,
May 5 2017
OK, I see parens are needed and the change aligns classes as functions; this works: https://jsfiddle.net/hcx1f972/4/ You can close it as invalid.
,
May 5 2017
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by m.go...@gmail.com
, May 5 2017