mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 21:36:20 +00:00
Bug 1236548 - Followup: Make added test actually pass. (rs=Waldo)
This commit is contained in:
parent
2c0dc8a8a0
commit
3b11121a36
@ -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());
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user