New issue
Advanced search Search tips

Issue 718736 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



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 description

UserAgent: 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.
 

Comment 1 by m.go...@gmail.com, May 5 2017

My test case is incorrect: this one passes in stable Chrome: https://jsfiddle.net/hcx1f972/3/

But I see it fails in Firefox as well so that's probably an intended change.

Comment 2 by m.go...@gmail.com, 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.

Comment 3 by tkent@chromium.org, May 5 2017

Components: -Blink Blink>JavaScript
Status: WontFix (was: Unconfirmed)

Sign in to add a comment