From bbddfc24c304d2f519805db62a463695eab89295 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 26 Apr 2017 22:31:50 +1000 Subject: src/lapi.js: return box directly without fetching via stack --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lapi.js b/src/lapi.js index 46c7e2b..eeb4137 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -483,7 +483,7 @@ const lua_newuserdata = function(L, size) { assert(L.top <= L.ci.top, "stack overflow"); - return L.stack[L.top - 1].value; + return box; }; const aux_upvalue = function(L, fi, n) { -- cgit v1.2.3-70-g09d2