mirror of https://github.com/tc39/test262.git
parent
6ef9cef4a0
commit
ed2bcdc0a9
|
@ -12,8 +12,24 @@ features: [Symbol]
|
|||
---*/
|
||||
|
||||
var set = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
||||
var subject = {};
|
||||
|
||||
assert.sameValue(set.call(true), undefined, 'boolean');
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(subject), Object.prototype, 'following boolean'
|
||||
);
|
||||
|
||||
assert.sameValue(set.call(1), undefined, 'number');
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(subject), Object.prototype, 'following number'
|
||||
);
|
||||
|
||||
assert.sameValue(set.call('string'), undefined, 'string');
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(subject), Object.prototype, 'following string'
|
||||
);
|
||||
|
||||
assert.sameValue(set.call(Symbol('')), undefined, 'symbol');
|
||||
assert.sameValue(
|
||||
Object.getPrototypeOf(subject), Object.prototype, 'following symbol'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue