tor-browser

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

fields-asi-2.js (410B)


      1 // Copyright (C) 2017 Valerie Young. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: ASI test in field declarations -- computed name interpreted as string index
      6 esid: sec-automatic-semicolon-insertion
      7 features: [class, class-fields-public]
      8 ---*/
      9 
     10 class C {
     11  x = "lol"
     12  [1]
     13 }
     14 
     15 var c = new C();
     16 
     17 assert.sameValue(c.x, 'o');
     18 
     19 reportCompare(0, 0);