2012-08-27 05:48:49 +02:00
|
|
|
// Copyright 2012 Mozilla Corporation. All rights reserved.
|
|
|
|
// This code is governed by the license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 8.0_L15
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
2015-07-08 19:12:39 +02:00
|
|
|
Tests that Intl meets the requirements for built-in objects
|
|
|
|
defined by the introduction of chapter 17 of the ECMAScript
|
2014-07-22 01:09:02 +02:00
|
|
|
Language Specification.
|
|
|
|
author: Norbert Lindenberg
|
|
|
|
---*/
|
2012-08-27 05:48:49 +02:00
|
|
|
|
2017-12-21 21:08:28 +01:00
|
|
|
assert.sameValue(Object.prototype.toString.call(Intl), "[object Object]",
|
|
|
|
"The [[Class]] internal property of a built-in non-function object must be " +
|
|
|
|
"\"Object\".");
|
|
|
|
|
|
|
|
assert(Object.isExtensible(Intl), "Built-in objects must be extensible.");
|
|
|
|
|
|
|
|
assert.sameValue(Object.getPrototypeOf(Intl), Object.prototype,
|
|
|
|
"The [[Prototype]] of Intl is %ObjectPrototype%.");
|
|
|
|
|
|
|
|
assert.sameValue(this.Intl, Intl,
|
|
|
|
"%Intl% is accessible as a property of the global object.");
|