write-frozen-property-strict.js (193B)
1 function foo(x) { 2 "use strict"; 3 var ok = false; 4 try { 5 x.a = 10; 6 } catch(e) { 7 ok = true; 8 } 9 assertEq(ok, true); 10 assertEq(x.a, 0); 11 } 12 x = {a:0,b:1}; 13 Object.freeze(x); 14 foo(x);
tor-browserThe Tor Browser | |
| git clone https://git.dasho.dev/tor-browser.git | |
| Log | Files | Refs | README | LICENSE |