tor-browser

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

instance-proto-and-extensible.js (638B)


      1 // Copyright 2012 Mozilla Corporation. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 10.1.3
      6 description: >
      7    Tests that objects constructed by Intl.Collator have the specified
      8    internal properties.
      9 author: Norbert Lindenberg
     10 ---*/
     11 
     12 var obj = new Intl.Collator();
     13 
     14 var actualPrototype = Object.getPrototypeOf(obj);
     15 assert.sameValue(actualPrototype, Intl.Collator.prototype, "Prototype of object constructed by Intl.Collator isn't Intl.Collator.prototype.");
     16 
     17 assert(Object.isExtensible(obj), "Object constructed by Intl.Collator must be extensible.");
     18 
     19 reportCompare(0, 0);