mirror of
https://github.com/tc39/test262.git
synced 2025-09-25 02:57:53 +02:00
Remove print calls in sm/object
This commit is contained in:
parent
1211b7805a
commit
744a1b2c75
@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.getOwnPropertyNames should play nicely with enumerator caching
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 518663;
|
||||
var summary =
|
||||
'Object.getOwnPropertyNames should play nicely with enumerator caching';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
for (var p in JSON);
|
||||
var names = Object.getOwnPropertyNames(JSON);
|
||||
@ -28,7 +18,3 @@ assert.sameValue(names.length >= 2, true,
|
||||
"wrong number of property names? [" + names + "]");
|
||||
assert.sameValue(names.indexOf("parse") >= 0, true);
|
||||
assert.sameValue(names.indexOf("stringify") >= 0, true);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.getOwnPropertyNames: array objects
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 518663;
|
||||
var summary = 'Object.getOwnPropertyNames: array objects';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var a, names, expected;
|
||||
|
||||
@ -49,8 +40,3 @@ a = [];
|
||||
names = Object.getOwnPropertyNames(a).sort();
|
||||
expected = ["length"];
|
||||
assert.sameValue(arraysEqual(names, expected), true);
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.getOwnPropertyNames: function objects
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 518663;
|
||||
var summary = 'Object.getOwnPropertyNames: function objects';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function two(a, b) { }
|
||||
|
||||
@ -52,8 +43,3 @@ var bound3 = Function.prototype.bind
|
||||
|
||||
assert.sameValue(Object.getOwnPropertyNames(bound3).indexOf("length") >= 0, true);
|
||||
assert.sameValue(bound3.length, 0);
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.getOwnPropertyNames: regular expression objects
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 518663;
|
||||
var summary = 'Object.getOwnPropertyNames: regular expression objects';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var actual = Object.getOwnPropertyNames(/a/);
|
||||
var expected = ["lastIndex"];
|
||||
@ -29,7 +20,3 @@ for (var i = 0; i < expected.length; i++)
|
||||
assert.sameValue(actual.indexOf(expected[i]) >= 0, true,
|
||||
expected[i] + " should be a property name on a RegExp");
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.create(O [, Properties])
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 492840;
|
||||
var summary = 'ES5 Object.create(O [, Properties])';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
assert.sameValue("create" in Object, true);
|
||||
assert.sameValue(Object.create.length, 2);
|
||||
@ -60,7 +51,3 @@ try {
|
||||
} catch (e) {
|
||||
}
|
||||
assert.sameValue(actual, "overridden");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,24 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Do not assert: !(attrs & (JSPROP_GETTER | JSPROP_SETTER)) with Object.defineProperty
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 568786;
|
||||
var summary =
|
||||
'Do not assert: !(attrs & (JSPROP_GETTER | JSPROP_SETTER)) with ' +
|
||||
'Object.defineProperty';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var o = { x: function(){} };
|
||||
Object.defineProperty(o, "x", { get: function(){} });
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.defineProperties(O, Properties)
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 430133;
|
||||
var summary = 'ES5 Object.defineProperties(O, Properties)';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
assert.sameValue("defineProperties" in Object, true);
|
||||
assert.sameValue(Object.defineProperties.length, 2);
|
||||
@ -137,7 +128,3 @@ catch (e)
|
||||
error = "bad exception: " + e;
|
||||
}
|
||||
assert.sameValue(error, "typeerror", "should throw on Properties == undefined");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,21 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Properly method-compile attempted addition of properties to non-extensible objects
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'add-property-non-extensible.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 602144;
|
||||
var summary =
|
||||
'Properly method-compile attempted addition of properties to ' +
|
||||
'non-extensible objects';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
// No property
|
||||
|
||||
@ -115,8 +103,3 @@ var o16 = Object.preventExtensions(Object.create(Object.freeze({ a: 2 })));
|
||||
for (var i = 0; i < 5; i++)
|
||||
o16.a = 3;
|
||||
assert.sameValue(Object.getOwnPropertyDescriptor(o16, "a"), undefined);
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,26 +8,12 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Properly handle GC of a dictionary accessor property whose [[Get]] or [[Set]] has been changed to |undefined|
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = "clear-dictionary-accessor-getset.js";
|
||||
var BUGNUMBER = 1082662;
|
||||
var summary =
|
||||
"Properly handle GC of a dictionary accessor property whose [[Get]] or " +
|
||||
"[[Set]] has been changed to |undefined|";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function test(field)
|
||||
{
|
||||
var prop = "[[" + field[0].toUpperCase() + field.substring(1) + "]]";
|
||||
print("Testing for GC crashes after setting " + prop + " to undefined...");
|
||||
|
||||
function inner()
|
||||
{
|
||||
// Create an object with an accessor property.
|
||||
@ -54,7 +40,3 @@ function test(field)
|
||||
|
||||
test("get");
|
||||
test("set");
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Implement Object.preventExtensions, Object.isExtensible
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = '15.2.3.10-01.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 492849;
|
||||
var summary = 'ES5: Implement Object.preventExtensions, Object.isExtensible';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function trySetProperty(o, p, v, strict)
|
||||
{
|
||||
@ -101,7 +91,3 @@ for (var i = 0, sz = objs.length; i < sz; i++)
|
||||
assert.sameValue(tryDefineProperty(o, "baz", 17), "throw",
|
||||
"unexpected behavior for new property definition on object " + i);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Implement Object.preventExtensions, Object.isExtensible
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = '15.2.3.4-01.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 492849;
|
||||
var summary = 'ES5: Implement Object.preventExtensions, Object.isExtensible';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
assert.sameValue(typeof Object.isExtensible, "function");
|
||||
assert.sameValue(Object.isExtensible.length, 1);
|
||||
@ -40,7 +30,3 @@ for (var i = 0, sz = objs.length; i < sz; i++)
|
||||
|
||||
assert.sameValue(Object.isExtensible(o), false, "object " + i + " is extensible?");
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.freeze() should return its argument with no conversion when the argument is a primitive value
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1076588;
|
||||
var summary = "Object.freeze() should return its argument with no conversion when the argument is a primitive value";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
assert.sameValue(Object.freeze(), undefined);
|
||||
assert.sameValue(Object.freeze(undefined), undefined);
|
||||
assert.sameValue(Object.freeze(null), null);
|
||||
|
@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, deepEqual.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Coerce the argument passed to Object.getOwnPropertyDescriptor using ToObject
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1079188;
|
||||
var summary = "Coerce the argument passed to Object.getOwnPropertyDescriptor using ToObject";
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
assert.throws(TypeError, () => Object.getOwnPropertyDescriptor());
|
||||
assert.throws(TypeError, () => Object.getOwnPropertyDescriptor(undefined));
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
The [[Prototype]] of an object whose prototype chain contains an array isn't that array's [[Prototype]]
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'getPrototypeOf-array.js';
|
||||
var BUGNUMBER = 769041;
|
||||
var summary =
|
||||
"The [[Prototype]] of an object whose prototype chain contains an array " +
|
||||
"isn't that array's [[Prototype]]";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var arr = [];
|
||||
assert.sameValue(Array.isArray(arr), true);
|
||||
@ -31,7 +20,3 @@ assert.sameValue(Object.getPrototypeOf(objWithArrPrototype), arr);
|
||||
var objWithArrGrandPrototype = Object.create(objWithArrPrototype);
|
||||
assert.sameValue(!Array.isArray(objWithArrGrandPrototype), true);
|
||||
assert.sameValue(Object.getPrototypeOf(objWithArrGrandPrototype), objWithArrPrototype);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("Tests complete");
|
||||
|
@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Coerce the argument passed to Object.getPrototypeOf using ToObject
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1079090;
|
||||
var summary = "Coerce the argument passed to Object.getPrototypeOf using ToObject";
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
assert.throws(TypeError, () => Object.getPrototypeOf());
|
||||
assert.throws(TypeError, () => Object.getPrototypeOf(undefined));
|
||||
@ -25,4 +22,3 @@ assert.sameValue(Object.getPrototypeOf("foo"), String.prototype);
|
||||
if (typeof Symbol === "function") {
|
||||
assert.sameValue(Object.getPrototypeOf(Symbol("foo")), Symbol.prototype);
|
||||
}
|
||||
|
||||
|
@ -6,14 +6,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object accessors should have get prefix
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1180290;
|
||||
var summary = 'Object accessors should have get prefix';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
assert.sameValue(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").get.name, "get __proto__");
|
||||
assert.sameValue(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set.name, "set __proto__");
|
||||
|
||||
|
@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.isExtensible() should return false when given primitive values as input
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1060873;
|
||||
var summary = "Object.isExtensible() should return false when given primitive values as input";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
assert.sameValue(Object.isExtensible(), false);
|
||||
assert.sameValue(Object.isExtensible(undefined), false);
|
||||
assert.sameValue(Object.isExtensible(null), false);
|
||||
@ -24,4 +21,3 @@ assert.sameValue(Object.isExtensible(true), false);
|
||||
if (typeof Symbol === "function") {
|
||||
assert.sameValue(Object.isExtensible(Symbol()), false);
|
||||
}
|
||||
|
||||
|
@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.isFrozen() should return true when given primitive values as input
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1071464;
|
||||
var summary = "Object.isFrozen() should return true when given primitive values as input";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
assert.sameValue(Object.isFrozen(), true);
|
||||
assert.sameValue(Object.isFrozen(undefined), true);
|
||||
assert.sameValue(Object.isFrozen(null), true);
|
||||
@ -24,4 +21,3 @@ assert.sameValue(Object.isFrozen(true), true);
|
||||
if (typeof Symbol === "function") {
|
||||
assert.sameValue(Object.isFrozen(Symbol()), true);
|
||||
}
|
||||
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.prototype.isPrototypeOf
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'isPrototypeOf.js';
|
||||
var BUGNUMBER = 619283;
|
||||
var summary = "Object.prototype.isPrototypeOf";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function expectThrowTypeError(fun)
|
||||
{
|
||||
@ -84,8 +75,3 @@ assert.sameValue(this.isPrototypeOf(protoGlobal), true);
|
||||
assert.sameValue(Object.prototype.isPrototypeOf({}), true);
|
||||
assert.sameValue(Object.prototype.isPrototypeOf(new Number(17)), true);
|
||||
assert.sameValue(Object.prototype.isPrototypeOf(function(){}), true);
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.isSealed() should return true when given primitive values as input
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1062860;
|
||||
var summary = "Object.isSealed() should return true when given primitive values as input";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
assert.sameValue(Object.isSealed(), true);
|
||||
assert.sameValue(Object.isSealed(undefined), true);
|
||||
assert.sameValue(Object.isSealed(null), true);
|
||||
@ -24,4 +21,3 @@ assert.sameValue(Object.isSealed(true), true);
|
||||
if (typeof Symbol === "function") {
|
||||
assert.sameValue(Object.isSealed(Symbol()), true);
|
||||
}
|
||||
|
||||
|
@ -8,12 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js, deepEqual.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Coerce the argument passed to Object.keys using ToObject
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1038545;
|
||||
var summary = "Coerce the argument passed to Object.keys using ToObject";
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
assert.throws(TypeError, () => Object.keys());
|
||||
assert.throws(TypeError, () => Object.keys(undefined));
|
||||
@ -26,4 +23,3 @@ if (typeof Symbol === "function") {
|
||||
}
|
||||
|
||||
assert.deepEqual(Object.keys("foo"), ["0", "1", "2"]);
|
||||
|
||||
|
@ -8,19 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.is{Sealed,Frozen}, Object.{seal,freeze}
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'mutation-prevention-methods.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 492849;
|
||||
var summary = 'Object.is{Sealed,Frozen}, Object.{seal,freeze}';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
// Empty object
|
||||
|
||||
@ -121,8 +111,3 @@ Object.freeze(o3);
|
||||
assert.sameValue(Object.isExtensible(o3), false);
|
||||
assert.sameValue(Object.isSealed(o3), true);
|
||||
assert.sameValue(Object.isFrozen(o3), true);
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
({}).toString.call(null) == "[object Null]", ({}).toString.call(undefined) == "[object Undefined]"
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'object-toString-01.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 575522;
|
||||
var summary = '({}).toString.call(null) == "[object Null]", ' +
|
||||
'({}).toString.call(undefined) == "[object Undefined]", ';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var toString = Object.prototype.toString;
|
||||
|
||||
@ -42,8 +31,3 @@ assert.sameValue(toString.call(-Infinity), "[object Number]");
|
||||
assert.sameValue(toString.call("foopy"), "[object String]");
|
||||
|
||||
assert.sameValue(toString.call({}), "[object Object]");
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,26 +8,12 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.preventExtensions should be idempotent
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'preventExtensions-idempotent.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 599459;
|
||||
var summary = 'Object.preventExtensions should be idempotent';
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var obj = {};
|
||||
assert.sameValue(Object.preventExtensions(obj), obj);
|
||||
assert.sameValue(Object.isExtensible(obj), false);
|
||||
assert.sameValue(Object.preventExtensions(obj), obj);
|
||||
assert.sameValue(Object.isExtensible(obj), false);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.preventExtensions() should return its argument with no conversion when the argument is a primitive value
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1073446;
|
||||
var summary = "Object.preventExtensions() should return its argument with no conversion when the argument is a primitive value";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
assert.sameValue(Object.preventExtensions(), undefined);
|
||||
assert.sameValue(Object.preventExtensions(undefined), undefined);
|
||||
assert.sameValue(Object.preventExtensions(null), null);
|
||||
@ -24,4 +21,3 @@ assert.sameValue(Object.preventExtensions(true), true);
|
||||
if (typeof Symbol === "function") {
|
||||
assert.sameValue(Object.preventExtensions(Symbol.for("foo")), Symbol.for("foo"));
|
||||
}
|
||||
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.prototype.propertyIsEnumerable
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'propertyIsEnumerable.js';
|
||||
var BUGNUMBER = 619283;
|
||||
var summary = "Object.prototype.propertyIsEnumerable";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function expectThrowError(errorCtor, fun)
|
||||
{
|
||||
@ -198,7 +189,3 @@ assert.sameValue(propertyIsEnumerable.call({ x: 9 }, "x"), true);
|
||||
assert.sameValue(propertyIsEnumerable.call(function() { }, "prototype"), false);
|
||||
assert.sameValue(propertyIsEnumerable.call(function() { }, "length"), false);
|
||||
assert.sameValue(propertyIsEnumerable.call(function() { "use strict"; }, "caller"), false);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,20 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Don't assert anything about a shape from the property cache until it's known the cache entry matches
|
||||
esid: pending
|
||||
---*/
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 713944;
|
||||
var summary =
|
||||
"Don't assert anything about a shape from the property cache until it's " +
|
||||
"known the cache entry matches";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
var accDesc = { set: function() {} };
|
||||
var dataDesc = { value: 3 };
|
||||
@ -56,4 +45,3 @@ for (var i = 0; i < 2; i++)
|
||||
}
|
||||
assert.sameValue(b.p1, 3);
|
||||
assert.sameValue(a.p1, 3);
|
||||
|
||||
|
@ -8,13 +8,10 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.seal() should return its argument with no conversion when the argument is a primitive value
|
||||
esid: pending
|
||||
---*/
|
||||
var BUGNUMBER = 1075294;
|
||||
var summary = "Object.seal() should return its argument with no conversion when the argument is a primitive value";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
assert.sameValue(Object.seal(), undefined);
|
||||
assert.sameValue(Object.seal(undefined), undefined);
|
||||
assert.sameValue(Object.seal(null), null);
|
||||
@ -24,4 +21,3 @@ assert.sameValue(Object.seal(true), true);
|
||||
if (typeof Symbol === "function") {
|
||||
assert.sameValue(Object.seal(Symbol.for("foo")), Symbol.for("foo"));
|
||||
}
|
||||
|
||||
|
@ -8,18 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Object.prototype.toLocaleString
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'toLocaleString.js';
|
||||
var BUGNUMBER = 653789;
|
||||
var summary = "Object.prototype.toLocaleString";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
function expectThrowTypeError(fun)
|
||||
{
|
||||
@ -101,7 +92,3 @@ assert.sameValue(toLocaleString.call({ toString: function() { return obj; } }),
|
||||
assert.sameValue(toLocaleString.call({ toString: function() { return obj; },
|
||||
valueOf: function() { return "abc"; } }),
|
||||
obj);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
@ -8,25 +8,9 @@ includes: [sm/non262.js, sm/non262-shell.js]
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
Using a name referring to a { get: undefined, set: undefined } descriptor shouldn't assert
|
||||
esid: pending
|
||||
---*/
|
||||
var gTestfile = 'vacuous-accessor-unqualified-name.js';
|
||||
//-----------------------------------------------------------------------------
|
||||
var BUGNUMBER = 560216;
|
||||
var summary =
|
||||
"Using a name referring to a { get: undefined, set: undefined } descriptor " +
|
||||
"shouldn't assert";
|
||||
|
||||
print(BUGNUMBER + ": " + summary);
|
||||
|
||||
/**************
|
||||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
Object.defineProperty(this, "x", { set: undefined, configurable: true });
|
||||
x;
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
print("All tests passed!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user