aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 22:31:50 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 22:31:50 +1000
commitbbddfc24c304d2f519805db62a463695eab89295 (patch)
treefdd8d97c71bff01da281ea3d8ec00ce1fcfaa414 /src
parent85f41a0bac75376e3abafce5b99aa6a9281bb802 (diff)
downloadfengari-bbddfc24c304d2f519805db62a463695eab89295.tar.gz
fengari-bbddfc24c304d2f519805db62a463695eab89295.tar.bz2
fengari-bbddfc24c304d2f519805db62a463695eab89295.zip
src/lapi.js: return box directly without fetching via stack
Diffstat (limited to 'src')
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
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) {