Skip to content

Commit

Permalink
fix #564
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 28, 2021
1 parent 67ad54d commit 38aaa13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
## Changelog
##### Unreleased
- Made `instanceof Promise` and `.constructor === Promise` work with polyfilled `Promise` for all native promise-based APIs
- Added a workaround for some buggy V8 versions \~4.5 related to fixing of `%TypedArray%` static methods, [#564](https://github.com/zloirock/core-js/issues/564)

##### 3.11.0 - 2021.04.22
- Added [accessible `Object#hasOwnProperty` stage 2 proposal](https://github.com/tc39/proposal-accessible-object-hasownproperty)
Expand Down
8 changes: 4 additions & 4 deletions packages/core-js/internals/array-buffer-view-core.js
Expand Up @@ -81,9 +81,9 @@ var exportTypedArrayMethod = function (KEY, property, forced) {
if (!DESCRIPTORS) return;
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
var TypedArrayConstructor = global[ARRAY];
if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) {
if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) try {
delete TypedArrayConstructor.prototype[KEY];
}
} catch (error) { /* empty */ }
}
if (!TypedArrayPrototype[KEY] || forced) {
redefine(TypedArrayPrototype, KEY, forced ? property
Expand All @@ -97,9 +97,9 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
if (setPrototypeOf) {
if (forced) for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global[ARRAY];
if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) {
if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) try {
delete TypedArrayConstructor[KEY];
}
} catch (error) { /* empty */ }
}
if (!TypedArray[KEY] || forced) {
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
Expand Down

0 comments on commit 38aaa13

Please sign in to comment.