tor-browser

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

json-invalid.js (740B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2021 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-parse-json-module
      6 description: Does not define
      7 info: |
      8  # 1.4 ParseJSONModule ( source )
      9 
     10  The abstract operation ParseJSONModule takes a single argument source which
     11  is a String representing the contents of a module.
     12 
     13  1. Let json be ? Call(%JSON.parse%, undefined, « source »).
     14  2. Return CreateDefaultExportSyntheticModule(json).
     15 flags: [module]
     16 features: [import-attributes, json-modules]
     17 negative:
     18  phase: resolution
     19  type: SyntaxError
     20 ---*/
     21 
     22 $DONOTEVALUATE();
     23 
     24 import value from './json-invalid_FIXTURE.json' with { type: 'json' };