mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 21:45:04 +02:00
Replace __proto__ with non-Annex B alternative
This commit is contained in:
parent
bb369e1e7c
commit
8a4abc2a00
@ -16,11 +16,12 @@ var sup = {
|
||||
}
|
||||
|
||||
var child = {
|
||||
__proto__: sup,
|
||||
async method() {
|
||||
var x = await super.method();
|
||||
assert.sameValue(x, 'sup');
|
||||
}
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(child, sup);
|
||||
|
||||
child.method().then($DONE, $DONE);
|
||||
|
@ -16,12 +16,13 @@ var sup = {
|
||||
}
|
||||
|
||||
var child = {
|
||||
__proto__: sup,
|
||||
async method(x = super.method()) {
|
||||
var y = await x;
|
||||
assert.sameValue(y, 'sup');
|
||||
}
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(child, sup);
|
||||
|
||||
child.method().then($DONE, $DONE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user