tor-browser

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

cptn-decl.js (550B)


      1 // Copyright (C) 2017 Apple Inc. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-class-definitions-runtime-semantics-evaluation
      5 description: Class declaration completion value is empty.
      6 info: |
      7    ClassDeclaration : class BindingIdentifier ClassTail
      8 
      9    1. Perform ? BindingClassDeclarationEvaluation of this ClassDeclaration.
     10    2. Return NormalCompletion(empty).
     11 ---*/
     12 
     13 assert.sameValue(eval('class C {}'), undefined);
     14 assert.sameValue(eval('1; class C {}'), 1);
     15 
     16 reportCompare(0, 0);