summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 17:48:16 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 18:46:26 +1000
commit20efa5c3b00e3a82ab135ec4a1f5d0563912aefe (patch)
tree628fa40d294e85e3e3f4d866fa49f6bd45d963ef /src/lobject.js
parent9294302fc069e0b8d893521fa552b5ed66601024 (diff)
downloadfengari-20efa5c3b00e3a82ab135ec4a1f5d0563912aefe.tar.gz
fengari-20efa5c3b00e3a82ab135ec4a1f5d0563912aefe.tar.bz2
fengari-20efa5c3b00e3a82ab135ec4a1f5d0563912aefe.zip
Add luaD_checkstack calls
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 79496d5..41c3a84 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -6,6 +6,7 @@ const assert = require('assert');
const defs = require('./defs.js');
const ljstype = require('./ljstype.js');
const ldebug = require('./ldebug.js');
+const ldo = require('./ldo.js');
const lstring = require('./lstring.js');
const luaconf = require('./luaconf.js');
const lvm = require('./lvm.js');
@@ -492,6 +493,7 @@ const luaO_pushvfstring = function(L, fmt, argp) {
n += 2;
i = e + 2;
}
+ ldo.luaD_checkstack(L, 1);
pushstr(L, fmt.slice(i));
if (n > 0) lvm.luaV_concat(L, n+1);
return L.stack[L.top-1].svalue();