mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +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)
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
*foo(a) {
|
||||
yield super.x;
|
||||
var value = {};
|
||||
var obj;
|
||||
|
||||
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 ]
|
||||
---*/
|
||||
|
||||
var obj = {
|
||||
*foo(a = super.x) {
|
||||
yield;
|
||||
var value = {};
|
||||
var obj;
|
||||
|
||||
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