tor-browser

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

eval-export-dflt-cls-anon-semi.js (463B)


      1 // |reftest| module
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 description: >
      6    An exported default "anonymous" class declaration does not need to be
      7    terminated with a semicolon or newline
      8 esid: sec-moduleevaluation
      9 flags: [module]
     10 ---*/
     11 
     12 var count = 0;
     13 
     14 export default class {} if (true) { count += 1; }
     15 
     16 assert.sameValue(count, 1);
     17 
     18 reportCompare(0, 0);