tor-browser

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

ctx-non-ctor.js (451B)


      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    `Promise.resolve` invoked on a non-constructor value
      7 es6id: 25.4.4.5
      8 info: |
      9    [...]
     10    4. Let promiseCapability be NewPromiseCapability(C).
     11    5. ReturnIfAbrupt(promiseCapability).
     12 ---*/
     13 
     14 assert.throws(TypeError, function() {
     15  Promise.resolve.call(eval);
     16 });
     17 
     18 reportCompare(0, 0);