mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
Rename tests
This commit is contained in:
parent
5341ad5985
commit
cde990b79c
@ -10,8 +10,18 @@ author: Sam Mikes
|
|||||||
description: GeneratorMethod body uses SuperProperty (allowed)
|
description: GeneratorMethod body uses SuperProperty (allowed)
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var obj = {
|
var value = {};
|
||||||
*foo(a) {
|
var obj;
|
||||||
yield super.x;
|
|
||||||
|
try {
|
||||||
|
Object.prototype.Test262Attr = value;
|
||||||
|
obj = {
|
||||||
|
*foo() {
|
||||||
|
return super.Test262Attr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert.sameValue(obj.foo().next().value, value);
|
||||||
|
} finally {
|
||||||
|
delete Object.prototype.Test262Attr;
|
||||||
|
}
|
@ -11,8 +11,18 @@ description: GeneratorMethod uses SuperProperty (allowed)
|
|||||||
features: [ default-arg, generator, super ]
|
features: [ default-arg, generator, super ]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var obj = {
|
var value = {};
|
||||||
*foo(a = super.x) {
|
var obj;
|
||||||
yield;
|
|
||||||
|
try {
|
||||||
|
Object.prototype.Test262Attr = value;
|
||||||
|
obj = {
|
||||||
|
*foo(a = super.Test262Attr) {
|
||||||
|
return a;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert.sameValue(obj.foo().next().value, value);
|
||||||
|
} finally {
|
||||||
|
delete Object.prototype.Test262Attr;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user