-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended TypedArray reverts to parent class. #3439
Comments
I cannot reproduce this in d8 4.5.103.35 |
The reason it is not showing in vanilla d8 is the v8 command flag Edit: But the overall issue is in |
Unfortunately said flag is necessary for Node to work. Otherwise Buffer data access from the native side may crash unexpectedly. |
@trevnorris The flag is not important. It only was the reason why it was not reproducible with the given example in vanilla d8. Needed change: The underlying bug is an flawed interaction between
With |
Did someone file a V8 bug yet? If yes, can you post the link? |
@trevnorris @bnoordhuis ... do we need to keep this one open? |
It seems to be fixed in V8 4.9 but not in 4.5 and 4.6; node v4 and v5 are still affected. If there is a single bug fix commit, I wasn't able to find it - the delta between 4.6 and 4.9 is pretty big - but it may be one of the patches @littledan landed late last year. |
Actually I'm not sure what fixed this. I've definitely made a bunch of changes to that code. But I didn't change what happens in Crankshaft or C++, and I don't see any changes with respect to TypedArrayInitialize between 4.6 and 4.9. So if the fix was on the JS side, it might be not too hard to backport. /cc @ofrobots |
This was fixed in V8 4.8.196 by v8/v8@4490ce8. See associated bug: https://bugs.chromium.org/p/v8/issues/detail?id=4419. I fear that the change is a bit too complex to be back-ported to V8 4.5 and 4.6. |
this appears to be fixed in master and may be too complex to backport, I'm not sure if there's anything else than can be done with this one relative to v4 and v5. Recommend closing. |
After creating several instances (~135 on my machine) an extended TypedArray reverts to the TypedArray it was extended from.
Gist: https://gist.github.com/AaronAsAChimp/354374a7e1cdc68c4d9f
Output:
This was tested against Node v4.2.1
The text was updated successfully, but these errors were encountered: