summaryrefslogtreecommitdiff
path: root/src/lcode.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lcode.js')
-rw-r--r--src/lcode.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lcode.js b/src/lcode.js
index 8b4a57c..752eedf 100644
--- a/src/lcode.js
+++ b/src/lcode.js
@@ -1231,7 +1231,7 @@ const luaK_setlist = function(fs, base, nelems, tostore) {
codeextraarg(fs, c);
}
else
- llex.luaX_syntaxerror(fs.ls, "constructor too long");
+ llex.luaX_syntaxerror(fs.ls, lua.to_luastring("constructor too long"));
fs.freereg = base + 1; /* free registers with list values */
};