summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lparser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lparser.js b/src/lparser.js
index 740fab1..57869d0 100644
--- a/src/lparser.js
+++ b/src/lparser.js
@@ -255,7 +255,7 @@ const new_localvar = function(ls, name) {
};
const new_localvarliteral = function(ls, name) {
- new_localvar(ls, defs.to_luastring(name, true));
+ new_localvar(ls, llex.luaX_newstring(ls, defs.to_luastring(name, true)));
};
const getlocvar = function(fs, i) {