builtin.js (753B)
1 // Copyright 2012 Mozilla Corporation. All rights reserved. 2 // This code is governed by the license found in the LICENSE file. 3 4 /*--- 5 es5id: 10.1_L15 6 description: > 7 Tests that Intl.Collator meets the requirements for built-in 8 objects defined by the introduction of chapter 17 of the 9 ECMAScript Language Specification. 10 author: Norbert Lindenberg 11 ---*/ 12 13 assert.sameValue(Object.prototype.toString.call(Intl.Collator), "[object Function]", 14 "The [[Class]] internal property of a built-in function must be " + 15 "\"Function\"."); 16 17 assert(Object.isExtensible(Intl.Collator), "Built-in objects must be extensible."); 18 19 assert.sameValue(Object.getPrototypeOf(Intl.Collator), Function.prototype); 20 21 reportCompare(0, 0);