tor-browser

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

S15.7.3.2_A3.js (573B)


      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: Number.MAX_VALUE is DontDelete
      6 es5id: 15.7.3.2_A3
      7 description: Checking if deleting Number.MAX_VALUE fails
      8 includes: [propertyHelper.js]
      9 ---*/
     10 
     11 verifyNotConfigurable(Number, "MAX_VALUE");
     12 
     13 // CHECK#1
     14 try {
     15  assert.sameValue(delete Number.MAX_VALUE, false);
     16 } catch (e) {
     17  if (e instanceof Test262Error) {
     18    throw e;
     19  }
     20  assert(e instanceof TypeError);
     21 }
     22 
     23 // TODO: Convert to verifyProperty() format.
     24 
     25 reportCompare(0, 0);