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
|
|
|
When the Object(value) is called and the value is null, undefined or not supplied,
|
|
|
|
create and return a new Object object if the object constructor had been called with the same arguments (15.2.2.1)
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 15.2.1.1_A1_T2
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Creating Object(void 0) and checking its properties
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//var y= void 0;
|
|
|
|
|
|
|
|
var __obj = Object(void 0);
|
|
|
|
|
|
|
|
var n__obj = new Object(void 0);
|
|
|
|
|
|
|
|
|
2018-02-15 21:33:45 +01:00
|
|
|
if (__obj.toString() !== n__obj.toString()) {
|
2021-07-28 22:50:06 +02:00
|
|
|
throw new Test262Error('#1');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (__obj.constructor !== n__obj.constructor) {
|
2021-07-28 22:50:06 +02:00
|
|
|
throw new Test262Error('#2');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (__obj.prototype !== n__obj.prototype) {
|
2021-07-28 22:50:06 +02:00
|
|
|
throw new Test262Error('#3');
|
2018-02-15 21:33:45 +01:00
|
|
|
}
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
if (__obj.toLocaleString() !== n__obj.toLocaleString()) {
|
2021-07-28 22:50:06 +02:00
|
|
|
throw new Test262Error('#4');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if (typeof __obj !== typeof n__obj) {
|
2021-07-28 22:50:06 +02:00
|
|
|
throw new Test262Error('#5');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|