From dfc3b44cbac0120d8262108eaae8817b80943cc2 Mon Sep 17 00:00:00 2001 From: Ted Campbell Date: Wed, 10 Apr 2019 12:50:05 +0000 Subject: [PATCH] Bug 1406146 - Fix cross-compartment global issue in typedarary test. r=jandem This is an artifact of the same-compartment realm changes. The test confuses CCWs and WindowProxies. Differential Revision: https://phabricator.services.mozilla.com/D26847 --HG-- extra : moz-landing-system : lando --- js/src/tests/non262/extensions/typedarray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/tests/non262/extensions/typedarray.js b/js/src/tests/non262/extensions/typedarray.js index 4836cc620d34..e05037ab6b54 100644 --- a/js/src/tests/non262/extensions/typedarray.js +++ b/js/src/tests/non262/extensions/typedarray.js @@ -545,7 +545,7 @@ function test() check(() => b[90] == 5) // Protos and proxies, oh my! - var alien = newGlobal(); + var alien = newGlobal({newCompartment: true}); var alien_view = alien.eval('view = new Uint8Array(7)'); var alien_buffer = alien.eval('buffer = view.buffer');