Skip to content
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

Opera Presto: Uint8ClampedArray.prototype.__proto__ #595

Closed
EyeAndTea opened this issue Jul 14, 2019 · 4 comments
Closed

Opera Presto: Uint8ClampedArray.prototype.__proto__ #595

EyeAndTea opened this issue Jul 14, 2019 · 4 comments

Comments

@EyeAndTea
Copy link

EyeAndTea commented Jul 14, 2019

Any attempts to write to "Uint8ClampedArray.prototype.__ proto __" on opera presto, which includes versions 12.x of the browser, causes an immediate crash. The problem happens in the file

./packages/core-js/internals/array-buffer-view-core.js

on the lines,

if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);

and

setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);

Due to my lack of familiarity with your code, its philosophy and architecture, I refrain from offering my own fix. An educated guess tells me that this will likely require an explicit detection of presto due to the nature of the bug, which is what I have done for my own copy of the library.

@zloirock
Copy link
Owner

I'll try to reproduce when I'll have time and access to opera presto.

@EyeAndTea
Copy link
Author

EyeAndTea commented Jul 18, 2019

Thank you.

A simple,

Uint8ClampedArray.prototype.__proto__ = {};

should be sufficient to cause a crash. A copy of opera presto 12.18 32bit can be found at

https://www.techspot.com/downloads/40-opera-for-windows.html

MD5: "329287dd3d69adbf93e66daa29e79e9e"

Whatever effort you put in this is appreciated.

@zloirock
Copy link
Owner

Thanks for the issue -)

@EyeAndTea
Copy link
Author

Tested with v3.2.0, and things do appear stable on Opera Presto now.

Thank you. Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants