mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1236548 - Followup: Make added test actually pass. (rs=Waldo)
This commit is contained in:
parent
67c9dddfc9
commit
9843f1af0e
@ -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…
Reference in New Issue
Block a user