Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium Harmony
New issue 3977 by [email protected]: when new.target is available,
extra variable prepended to rest parameters
https://code.google.com/p/v8/issues/detail?id=3977
Seems to be prepending undefined `this` variable to rest parameters when
building the rest parameters array
```
Echo:v8 caitp$ out/x64.debug/d8 --harmony-rest-parameters --harmony-classes
--use-strict
V8 version 4.3.0 (candidate) [console: dumb]
d8> class A { constructor(...a) { this.a = a; } }
class A { constructor(...a) { this.a = a; } }
d8> class B extends A { constructor(...b) { super(b); this.b = b; } }
class B extends A { constructor(...b) { super(b); this.b = b; } }
d8> new B(1, 2, 3)
{a: [[, 1, 2, 3]], b: [, 1, 2, 3]}
d8>
d8> new A(1, 2, 3)
{a: [1, 2, 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.