tor-browser

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

name-prop-name-eval-error.js (388B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: >
      6    Errors thrown during method definition are forwarded to the runtime.
      7 es6id: 14.3.8
      8 ---*/
      9 
     10 assert.throws(Test262Error, function() {
     11  ({
     12    [(function() { throw new Test262Error(); }())]() {}
     13  });
     14 });
     15 
     16 reportCompare(0, 0);