tor-browser

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

S15.10.4.1_A8_T7.js (711B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: let P be ToString(pattern) and let F be ToString(flags)
      6 es5id: 15.10.4.1_A8_T7
      7 description: >
      8    Pattern is {toString:void 0, valueOf:function(){throw "invalof";}
      9    } and flags is "i"
     10 ---*/
     11 
     12 try {
     13    throw new Test262Error('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({toString:void 0, valueOf:function(){throw "invalof";}})));
     14 } catch (e) {
     15  assert.sameValue(e, "invalof", 'The value of e is expected to be "invalof"');
     16 }
     17 
     18 // TODO: Convert to assert.throws() format.
     19 
     20 reportCompare(0, 0);