Bug 1236548 - Followup: Make added test actually pass. (rs=Waldo)

This commit is contained in:
Eric Faust 2016-01-11 18:09:25 -08:00
parent 67c9dddfc9
commit 9843f1af0e
2 changed files with 12 additions and 6 deletions

View File

@ -5,10 +5,16 @@ do {
} while (!inIon());
// JS_UNINITIALIZED_LEXICAL
class B {};
class D extends B {
constructor() { super(); }
};
function dontAbortWholeCompilation() {
class B {};
class D extends B {
constructor() { super(); }
};
return D;
}
var classImpl = dontAbortWholeCompilation();
do {
new D(); // jit::CreateThis passes JS_UNINITIALIZED_LEXICAL
new classImpl(); // jit::CreateThis passes JS_UNINITIALIZED_LEXICAL
} while (!inIon());

View File

@ -77,7 +77,7 @@ InvokeFunction(JSContext* cx, HandleObject obj, bool constructing, uint32_t argc
RootedValue newTarget(cx, argvWithoutThis[argc]);
// If |this| hasn't been created, or is JS_UNINITIALIED_LEXICAL,
// If |this| hasn't been created, or is JS_UNINITIALIZED_LEXICAL,
// we can use normal construction code without creating an extraneous
// object.
if (thisv.isMagic()) {