|
@@ -15,6 +15,13 @@ define(function () {
|
|
assert(function () {
|
|
assert(function () {
|
|
return !("hasOwnProperty" in Object.create(null));
|
|
return !("hasOwnProperty" in Object.create(null));
|
|
});
|
|
});
|
|
|
|
+ assert(function () {
|
|
|
|
+ return Object.getPrototypeOf(Object.create(null)) === null;
|
|
|
|
+ });
|
|
|
|
+ assert(function () {
|
|
|
|
+ var p = {};
|
|
|
|
+ return Object.getPrototypeOf(Object.create(p)) === p;
|
|
|
|
+ });
|
|
assert(function () {
|
|
assert(function () {
|
|
return new Function("return this")().Object === Object;
|
|
return new Function("return this")().Object === Object;
|
|
});
|
|
});
|