From fd344a81c276305737fd3b0356be8526f092c8db Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Wed, 28 Apr 2021 16:54:58 +0300 Subject: [PATCH] make sure that wrappers doesn't use original methods which can't work with non subclasses of `%TypedArray%` --- packages/core-js/internals/array-buffer-view-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-js/internals/array-buffer-view-core.js b/packages/core-js/internals/array-buffer-view-core.js index e3152f5ad020..d3c73db796a4 100644 --- a/packages/core-js/internals/array-buffer-view-core.js +++ b/packages/core-js/internals/array-buffer-view-core.js @@ -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; }