Skip to content

Commit

Permalink
make sure that wrappers doesn't use original methods which can't work…
Browse files Browse the repository at this point in the history
… with non subclasses of `%TypedArray%`
  • Loading branch information
zloirock committed Apr 28, 2021
1 parent 38aaa13 commit fd344a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/array-buffer-view-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
if (!TypedArray[KEY] || forced) {
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
try {
return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8Array[KEY] || property);
return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
} catch (error) { /* empty */ }
} else return;
}
Expand Down

0 comments on commit fd344a8

Please sign in to comment.