tor-browser

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

value-object-abrupt.js (584B)


      1 // Copyright (C) 2019 Aleksey Shvayka. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-serializejsonproperty
      5 description: >
      6  Abrupt completion from Get.
      7 info: |
      8  JSON.stringify ( value [ , replacer [ , space ] ] )
      9 
     10  [...]
     11  12. Return ? SerializeJSONProperty(the empty String, wrapper).
     12 
     13  SerializeJSONProperty ( key, holder )
     14 
     15  1. Let value be ? Get(holder, key).
     16 ---*/
     17 
     18 assert.throws(Test262Error, function() {
     19  JSON.stringify({
     20    get key() {
     21      throw new Test262Error();
     22    },
     23  });
     24 });
     25 
     26 reportCompare(0, 0);