Updates:
Status: Fixed
Cc: [email protected]
Comment #6 on issue 4030 by [email protected]: SuperCall from within
ArrowFunction defined in Constructor should produce a ReferenceError
https://code.google.com/p/v8/issues/detail?id=4030
Fixed by the "this" scoping changes of last month, together with Erik's
super-call work.
$ cat > /tmp/test.js
"use strict";
class A {
constructor() {}
}
class B extends A {
constructor() {
super();
this.af = _ => super();
}
}
var b = new B();
b.af();
$ out/x64.release/d8 /tmp/test.js
/tmp/test.js:10: ReferenceError: this is not defined
this.af = _ => super();
^
ReferenceError: this is not defined
at B.af._ [as af] (/tmp/test.js:10:25)
at /tmp/test.js:16:3
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.