Skip to content

Commit

Permalink
some stylistic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 30, 2021
1 parent c59ec15 commit 26af5cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core-js/internals/array-buffer-view-core.js
Expand Up @@ -68,11 +68,9 @@ var aTypedArray = function (it) {
};

var aTypedArrayConstructor = function (C) {
if (setPrototypeOf) {
if (isPrototypeOf.call(TypedArray, C)) return C;
if (setPrototypeOf && !isPrototypeOf.call(TypedArray, C)) {
throw TypeError('Target is not a typed array constructor');
// required for make typed arrays subclassing work in engines without `setPrototypeOf` / `__proto__`
} else return C;
} return C;
};

var exportTypedArrayMethod = function (KEY, property, forced) {
Expand Down

0 comments on commit 26af5cc

Please sign in to comment.