WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
187045
Inconsistent output compared with other JS engines
https://bugs.webkit.org/show_bug.cgi?id=187045
Summary
Inconsistent output compared with other JS engines
sunlili
Reported
2018-06-26 08:16:04 PDT
Hello, The following code behaves strangely (inconsistent with other engines). class cc extends ( x = function () { console.log("Hi"); }) { }; In webkit, cc is defined normally and x is defined too. However, in V8 and Firefox, a ReferenceError is reported: ReferenceError: assignment to undeclared variable x BT group 2018.6.26
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2018-07-22 13:04:26 PDT
***
Bug 187758
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug