Bug 1108261 - Use new to create cross compartment typed array. no-r,testonly

This commit is contained in:
Tom Schuster 2014-12-06 12:18:12 -08:00
parent 6e61fa1c76
commit a9104d8a51

View File

@ -4,7 +4,7 @@
*/
var global = newGlobal();
var array = global.Int8Array(10);
var array = new global.Int8Array(10);
assertEq(array.find(v => v == 1), undefined)
assertEq(array.findIndex(v => v == 0), 0)