tor-browser

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

labelled-fn-stmt.js (627B)


      1 // |reftest| error:SyntaxError
      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: It is a Syntax Error if IsLabelledFunction(Statement) is true.
      6 negative:
      7  phase: parse
      8  type: SyntaxError
      9 esid: sec-semantics-static-semantics-early-errors
     10 es6id: 13.7.1.1
     11 info: |
     12    Although Annex B describes an extension which permits labelled function
     13    declarations outside of strict mode, this early error is applied regardless
     14    of the language mode.
     15 ---*/
     16 
     17 $DONOTEVALUATE();
     18 
     19 do label1: label2: function f() {} while (false)