mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Handle case in INCNAME on const vars which are morphed into GETGNAME by the emitter, bug 673731.
This commit is contained in:
parent
4a15c69088
commit
062072fa23
3
js/src/jit-test/tests/basic/bug673731.js
Normal file
3
js/src/jit-test/tests/basic/bug673731.js
Normal file
@ -0,0 +1,3 @@
|
||||
// |jit-test| error: ReferenceError
|
||||
|
||||
const IS_TOKEN_ARRAY = [ printBugNumber && IS_TOKEN_ARRAY++ && this() ? this() : this() ];
|
@ -6554,8 +6554,13 @@ js_EmitTree(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn)
|
||||
EMIT_UINT16_IMM_OP(op, atomIndex);
|
||||
} else {
|
||||
JS_ASSERT(JOF_OPTYPE(op) == JOF_ATOM);
|
||||
if (!EmitNameIncDec(cx, pn2, op, cg))
|
||||
return JS_FALSE;
|
||||
if (js_CodeSpec[op].format & (JOF_INC | JOF_DEC)) {
|
||||
if (!EmitNameIncDec(cx, pn2, op, cg))
|
||||
return JS_FALSE;
|
||||
} else {
|
||||
if (!EmitAtomOp(cx, pn2, op, cg))
|
||||
return JS_FALSE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (pn2->isConst()) {
|
||||
|
Loading…
Reference in New Issue
Block a user