bug1317943.js (311B)
1 "use strict"; 2 function test() { 3 for (var i=0; i<10; i++) { 4 try { 5 var arr = []; 6 arr[0] = 1; 7 Object.freeze(arr); 8 arr[0] = 2; 9 } catch (e) { 10 assertEq(e.toString().includes("TypeError: 0 is read-only"), true); 11 } 12 } 13 } 14 test();