Rename tests

This commit is contained in:
Mike Pennisi 2015-05-20 16:45:26 -04:00
parent 5341ad5985
commit cde990b79c
6 changed files with 28 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;
}