Debian Codegraph @

js/src/tests/test262/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 esid: intl-object
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(Object.isExtensible(Intl), "Built-in objects must be extensible.");
14
15 assert.sameValue(Object.getPrototypeOf(Intl), Object.prototype,
16 "The [[Prototype]] of Intl is %ObjectPrototype%.");
17
18 assert.sameValue(this.Intl, Intl,
19 "%Intl% is accessible as a property of the global object.");
20
21 reportCompare(0, 0);