Bug 705052: Don't use private STACK/TOP macros in jsstate.c

These convenience macros are defined and used in jsrun.c, and should not
be used in other files.
This commit is contained in:
Tor Andersson
2022-03-16 11:34:18 +01:00
parent 76e400fb67
commit db110ea88e

View File

@@ -10,9 +10,9 @@
static int js_ptry(js_State *J) {
if (J->trytop == JS_TRYLIMIT) {
STACK[TOP].type = JS_TLITSTR;
STACK[TOP].u.litstr = "exception stack overflow";
++TOP;
J->stack[J->top].type = JS_TLITSTR;
J->stack[J->top].u.litstr = "exception stack overflow";
++J->top;
return 1;
}
return 0;