Bug 1389628 - Part 1: Fix a trivially broken jit-test. r=tcampbell
authorJason Orendorff <jorendorff@mozilla.com>
Mon, 15 Oct 2018 19:00:39 +0000
changeset 491330 03a1030b787f33990c48d28e3c628b8127ae8f4b
parent 491329 1504056ce8e6749029da85db624d54d5d5cbc572
child 491331 93d6f4d54f78c2e3898ac8395c1e4f3544537fbd
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstcampbell
bugs1389628
milestone65.0a1
Bug 1389628 - Part 1: Fix a trivially broken jit-test. r=tcampbell Differential Revision: https://phabricator.services.mozilla.com/D8705
js/src/jit-test/tests/basic/bug1445854.js
--- a/js/src/jit-test/tests/basic/bug1445854.js
+++ b/js/src/jit-test/tests/basic/bug1445854.js
@@ -1,4 +1,5 @@
 load(libdir + "asserts.js");
 if (typeof ReadableStream == "function") {
-    assertThrowsInstanceOf(TypeError, () => ReadableStream.prototype.tee());
+    assertThrowsInstanceOf(() => ReadableStream.prototype.tee(),
+                           TypeError);
 }