tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

auto-boxing-non-strict.js (688B)


      1 // Copyright (C) 2013 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 19.4
      5 description: >
      6    Symbol ToObject auto-boxing
      7 flags: [noStrict]
      8 features: [Symbol]
      9 ---*/
     10 
     11 var sym = Symbol('66');
     12 
     13 sym.a = 0;
     14 assert.sameValue(sym.a, undefined, "The value of `sym.a` is `undefined`, after executing `sym.a = 0;`");
     15 
     16 sym['a' + 'b'] = 0;
     17 assert.sameValue(sym['a' + 'b'], undefined, "The value of `sym['a' + 'b']` is `undefined`, after executing `sym['a' + 'b'] = 0;`");
     18 
     19 sym[62] = 0;
     20 assert.sameValue(sym[62], undefined, "The value of `sym[62]` is `undefined`, after executing `sym[62] = 0;`");
     21 
     22 reportCompare(0, 0);