tor-browser

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

proto.js (814B)


      1 // |reftest| skip module -- source-phase-imports is not supported
      2 // Copyright (C) 2024 Chengzhong Wu. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-properties-of-the-%abstractmodulesource%25-intrinsic-object
      6 description: >
      7  The prototype of %AbstractModuleSource% is Object.prototype
      8 info: |
      9  The value of the [[Prototype]] internal slot of the %AbstractModuleSource% object is the
     10  intrinsic object %FunctionPrototype%.
     11 features: [source-phase-imports]
     12 flags: [module]
     13 ---*/
     14 
     15 assert.sameValue(typeof $262.AbstractModuleSource, 'function');
     16 assert.sameValue(
     17  Object.getPrototypeOf($262.AbstractModuleSource),
     18  Function.prototype,
     19  'Object.getPrototypeOf(AbstractModuleSource) returns the value of `Function.prototype`'
     20 );
     21 
     22 reportCompare(0, 0);