tor-browser

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

prevent-extensions.js (542B)


      1 // |reftest| module
      2 // Copyright (C) 2016 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-module-namespace-exotic-objects-preventextensions
      6 description: The [[PreventExtensions]] internal method returns `true`
      7 flags: [module]
      8 features: [Reflect]
      9 ---*/
     10 
     11 import * as ns from './prevent-extensions.js';
     12 
     13 // This invocation should not throw an exception
     14 Object.preventExtensions(ns);
     15 
     16 assert.sameValue(Reflect.preventExtensions(ns), true);
     17 
     18 reportCompare(0, 0);