tor-browser

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

json-named-bindings.js (732B)


      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 named bindings
      7 info: |
      8  In the early design of JSON modules, contributors considered allowing the
      9  properties of object values in JSON modules to be imported directly by name.
     10  This was ultimately rejected, so attempting to import in this way should
     11  produce a SyntaxError.
     12 flags: [module]
     13 features: [import-attributes, json-modules]
     14 negative:
     15  phase: resolution
     16  type: SyntaxError
     17 ---*/
     18 
     19 $DONOTEVALUATE();
     20 
     21 import {name} from './json-named-bindings_FIXTURE.json' with { type: 'json' };