2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-07-22 01:09:02 +02:00
|
|
|
Global object has properties such as built-in objects such as
|
|
|
|
Math, String, Date, parseInt, etc
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 10.2.3_A1.1_T3
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Global execution context - Constructor Properties
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#13
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Object === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#13: Object === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#14
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Function === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#14: Function === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#15
|
2018-02-15 21:25:21 +01:00
|
|
|
if (String === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#15: String === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#16
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Number === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#16: Number === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#17
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Array === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#17: Array === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#18
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Boolean === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#20: Boolean === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#18
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Date === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#18: Date === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#19
|
2018-02-15 21:25:21 +01:00
|
|
|
if (RegExp === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#19: RegExp === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#20
|
2018-02-15 21:25:21 +01:00
|
|
|
if (Error === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#20: Error === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#21
|
2018-02-15 21:25:21 +01:00
|
|
|
if (EvalError === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#21: EvalError === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#22
|
2018-02-15 21:25:21 +01:00
|
|
|
if (RangeError === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#22: RangeError === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#23
|
2018-02-15 21:25:21 +01:00
|
|
|
if (ReferenceError === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#23: ReferenceError === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#24
|
2018-02-15 21:25:21 +01:00
|
|
|
if (SyntaxError === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#24: SyntaxError === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#25
|
2018-02-15 21:25:21 +01:00
|
|
|
if (TypeError === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#25: TypeError === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#26
|
2018-02-15 21:25:21 +01:00
|
|
|
if (URIError === null) {
|
2021-07-21 21:09:22 +02:00
|
|
|
throw new Test262Error("#26: URIError === null");
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|