[Webkit-unassigned] [Bug 171543] New: [ES6] Arrow function. Issue in access to this after eval('super()') within constructor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 2 01:36:55 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171543
Bug ID: 171543
Summary: [ES6] Arrow function. Issue in access to this after
eval('super()') within constructor
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gskachkov at gmail.com
Hmm, during investigation error 171274 I faced in error in binding `this` & superCall in arrow function.
```
class A extends Object {
constructor () {
var arrow = () => { eval('super()'); print(this.id);}
arrow();
}
};
new A // ReferenceError: Cannot access uninitialized variable. But should be OK.
```
Before I was sure that we always load `this` from virtual scope in arrow function within constructor, but it is not true
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170502/e3f3bb1d/attachment.html>
More information about the webkit-unassigned
mailing list