Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/intl402/Intl/builtin.js

raw
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: 8.0_L15
6 description: >
7 Tests that Intl meets the requirements for built-in objects
8 defined by the introduction of chapter 17 of the ECMAScript
9 Language Specification.
10 author: Norbert Lindenberg
11 ---*/
12
13 assert.sameValue(Object.prototype.toString.call(Intl), "[object Object]",
14 "The [[Class]] internal property of a built-in non-function object must be " +
15 "\"Object\".");
16
17 assert(Object.isExtensible(Intl), "Built-in objects must be extensible.");
18
19 assert.sameValue(Object.getPrototypeOf(Intl), Object.prototype,
20 "The [[Prototype]] of Intl is %ObjectPrototype%.");
21
22 assert.sameValue(this.Intl, Intl,
23 "%Intl% is accessible as a property of the global object.");