summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 21:21:50 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 23:17:22 +1000
commite4c9580d20924a0db1ff7ed0d30da9b71dbb5066 (patch)
tree67b660ec32e31282d0cf305b178bff1da3baba39 /src/ldebug.js
parent7e886ba08a443d9653c3033901ae8c83108d3701 (diff)
downloadfengari-e4c9580d20924a0db1ff7ed0d30da9b71dbb5066.tar.gz
fengari-e4c9580d20924a0db1ff7ed0d30da9b71dbb5066.tar.bz2
fengari-e4c9580d20924a0db1ff7ed0d30da9b71dbb5066.zip
Introduce lvm.cvt2str
In future this could be configurable
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 1862e55..74a04db 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -546,7 +546,7 @@ const luaG_typeerror = function(L, o, op) {
};
const luaG_concaterror = function(L, p1, p2) {
- if (p1.ttisstring() || p1.ttisnumber()) p1 = p2;
+ if (p1.ttisstring() || lvm.cvt2str(p1)) p1 = p2;
luaG_typeerror(L, p1, defs.to_luastring('concatenate', true));
};