зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1883542: Add test and assertion r=jandem
I ran a one-line patch containing only the assertion through `./mach try auto` and everything passed. Differential Revision: https://phabricator.services.mozilla.com/D204131
This commit is contained in:
Родитель
7860e1e15f
Коммит
83c1f27889
|
@ -0,0 +1,13 @@
|
|||
Object.defineProperty(this, "getter", {get: foo});
|
||||
|
||||
var output;
|
||||
let i = 20;
|
||||
function foo() {
|
||||
eval("");
|
||||
output = this;
|
||||
if (i--) {
|
||||
getter++;
|
||||
}
|
||||
}
|
||||
foo();
|
||||
output.newString();
|
|
@ -1146,6 +1146,7 @@ AttachDecision GetPropIRGenerator::tryAttachNative(HandleObject obj,
|
|||
case NativeGetPropKind::ScriptedGetter:
|
||||
case NativeGetPropKind::NativeGetter: {
|
||||
auto* nobj = &obj->as<NativeObject>();
|
||||
MOZ_ASSERT(!IsWindow(nobj));
|
||||
|
||||
maybeEmitIdGuard(id);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче