Skip to content

Commit 0fa24b7

Browse files
committed
fixup! Make better use of testTypedArray.js
1 parent 621ab75 commit 0fa24b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

harness/testTypedArray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function ctorArgFactoryMatchesSome(argFactory, features) {
220220
if (argFactory === makeImmutableArrayBuffer) return true;
221221
break;
222222
default:
223-
throw Test262Error("unknown feature: " + features[i]);
223+
throw new Test262Error("unknown feature: " + features[i]);
224224
}
225225
}
226226
return false;
@@ -271,7 +271,7 @@ function testWithAllTypedArrayConstructors(f, constructors, includeArgFactories,
271271
}
272272
}
273273
if (ctorArgFactories.length === 0) {
274-
throw Test262Error("no arg factories match include " + includeArgFactories + " and exclude " + excludeArgFactories);
274+
throw new Test262Error("no arg factories match include " + includeArgFactories + " and exclude " + excludeArgFactories);
275275
}
276276
for (var k = 0; k < ctorArgFactories.length; ++k) {
277277
var argFactory = ctorArgFactories[k];

0 commit comments

Comments
 (0)