Skip to content

Commit fa2276b

Browse files
committed
Merge remote-tracking branch 'upsteam/master'
2 parents 3ce9fcb + cc101bc commit fa2276b

File tree

24 files changed

+187
-82
lines changed

24 files changed

+187
-82
lines changed

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"console": "integratedTerminal",
99
"luaVersion": "lua-latest",
1010
"windows": {
11-
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.10-win32-x64/bin/lua-debug.exe"
11+
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.12-win32-x64/bin/lua-debug.exe"
1212
},
1313
"linux": {
14-
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.10-linux-x64/bin/lua-debug",
14+
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.12-linux-x64/bin/lua-debug",
1515
},
1616
"osx": {
17-
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.10-darwin-arm64/bin/lua-debug",
17+
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.12-darwin-arm64/bin/lua-debug",
1818
},
1919
"outputCapture": [
2020
],
@@ -34,7 +34,7 @@
3434
"--extensionDevelopmentPath=${workspaceFolder}/extension/"
3535
],
3636
"env": {
37-
"VSCODE_EXTENSION_PATH" : "${command:extensionPath}actboy168.lua-debug-2.0.10"
37+
"VSCODE_EXTENSION_PATH" : "${command:extensionPath}actboy168.lua-debug-2.0.12"
3838
}
3939
}
4040
]

3rd/bee.lua

Submodule bee.lua updated 70 files

3rd/json.lua

3rd/lua/lua-latest/lapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ void lua_warning (lua_State *L, const char *msg, int tocont) {
13431343
LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) {
13441344
Udata *u;
13451345
lua_lock(L);
1346-
api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value");
1346+
api_check(L, 0 <= nuvalue && nuvalue < SHRT_MAX, "invalid value");
13471347
u = luaS_newudata(L, size, nuvalue);
13481348
setuvalue(L, s2v(L->top.p), u);
13491349
api_incr_top(L);

3rd/lua/lua-latest/lcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ void luaK_exp2anyregup (FuncState *fs, expdesc *e) {
985985
** or it is a constant.
986986
*/
987987
void luaK_exp2val (FuncState *fs, expdesc *e) {
988-
if (hasjumps(e))
988+
if (e->k == VJMP || hasjumps(e))
989989
luaK_exp2anyreg(fs, e);
990990
else
991991
luaK_dischargevars(fs, e);

3rd/lua/lua-latest/ldo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ l_noret luaD_throw (lua_State *L, int errcode) {
123123
else { /* thread has no error handler */
124124
global_State *g = G(L);
125125
errcode = luaE_resetthread(L, errcode); /* close all upvalues */
126+
L->status = errcode;
126127
if (g->mainthread->errorJmp) { /* main thread has a handler? */
127128
setobjs2s(L, g->mainthread->top.p++, L->top.p - 1); /* copy error obj. */
128129
luaD_throw(g->mainthread, errcode); /* re-throw in main thread */

3rd/lua/lua-latest/lparser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static int new_localvar (LexState *ls, TString *name) {
198198
checklimit(fs, dyd->actvar.n + 1 - fs->firstlocal,
199199
MAXVARS, "local variables");
200200
luaM_growvector(L, dyd->actvar.arr, dyd->actvar.n + 1,
201-
dyd->actvar.size, Vardesc, USHRT_MAX, "local variables");
201+
dyd->actvar.size, Vardesc, SHRT_MAX, "local variables");
202202
var = &dyd->actvar.arr[dyd->actvar.n++];
203203
var->vd.kind = VDKREG; /* default */
204204
var->vd.name = name;

3rd/lua/lua-latest/lstate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ int luaE_resetthread (lua_State *L, int status) {
342342
LUA_API int lua_closethread (lua_State *L, lua_State *from) {
343343
int status;
344344
lua_lock(L);
345+
luai_threadcall(L, from);
345346
L->nCcalls = (from) ? getCcalls(from) : 0;
346347
status = luaE_resetthread(L, L->status);
348+
luai_threadret(from, L);
347349
lua_unlock(L);
348350
return status;
349351
}

3rd/lua/lua54/lstate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ int luaE_resetthread (lua_State *L, int status) {
342342
LUA_API int lua_closethread (lua_State *L, lua_State *from) {
343343
int status;
344344
lua_lock(L);
345+
luai_threadcall(L, from);
345346
L->nCcalls = (from) ? getCcalls(from) : 0;
346347
status = luaE_resetthread(L, L->status);
348+
luai_threadret(from, L);
347349
lua_unlock(L);
348350
return status;
349351
}

compile/common/bee.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local lm = require "luamake"
33
lm.rootdir = "../../3rd/bee.lua"
44

55
lm:lua_src "source_bee" {
6-
sources = "3rd/lua-seri/lua-seri.c",
6+
sources = "3rd/lua-seri/lua-seri.cpp",
77
msvc = {
88
flags = "/wd4244"
99
}

0 commit comments

Comments
 (0)