Skip to content

Commit 26af5cc

Browse files
committedJul 30, 2021
some stylistic fixes
1 parent c59ec15 commit 26af5cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ var aTypedArray = function (it) {
6868
};
6969

7070
var aTypedArrayConstructor = function (C) {
71-
if (setPrototypeOf) {
72-
if (isPrototypeOf.call(TypedArray, C)) return C;
71+
if (setPrototypeOf && !isPrototypeOf.call(TypedArray, C)) {
7372
throw TypeError('Target is not a typed array constructor');
74-
// required for make typed arrays subclassing work in engines without `setPrototypeOf` / `__proto__`
75-
} else return C;
73+
} return C;
7674
};
7775

7876
var exportTypedArrayMethod = function (KEY, property, forced) {

0 commit comments

Comments
 (0)
Please sign in to comment.