зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1107443 part 4. Fix JS engine tests that define non-configurable properties on the window without meaning to. r=jorendorff
This commit is contained in:
Родитель
3c92a4bdd7
Коммит
434f98fb7d
|
@ -16,7 +16,7 @@ print(BUGNUMBER + ": " + summary);
|
|||
* BEGIN TEST *
|
||||
**************/
|
||||
|
||||
Object.defineProperty(this, "x", { set: undefined });
|
||||
Object.defineProperty(this, "x", { set: undefined, configurable: true });
|
||||
x;
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
foo = 1;
|
||||
Object.defineProperty(this, "foo", {writable:false});
|
||||
Object.defineProperty(this, "foo", {writable:false, configurable:true});
|
||||
foo = 2;
|
||||
assertEq(foo, 1);
|
||||
|
||||
|
|
|
@ -14,6 +14,6 @@ var summary =
|
|||
'[@ js_GetClassPrototype]';
|
||||
|
||||
this.watch("x", function() { });
|
||||
Object.defineProperty(this, "x", { set: undefined });
|
||||
Object.defineProperty(this, "x", { set: undefined, configurable: true });
|
||||
|
||||
reportCompare(true, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче