aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 15:21:43 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 15:31:56 +1000
commita4cbe2f7cabe1dd4bb91c8e3909c53c0bd3dc44d (patch)
treeefbf401b02852389689d12bc294bd45d5f1caf85 /src
parent66f3914bc7bec57df742ca2126a44e4248aa7f2c (diff)
downloadfengari-a4cbe2f7cabe1dd4bb91c8e3909c53c0bd3dc44d.tar.gz
fengari-a4cbe2f7cabe1dd4bb91c8e3909c53c0bd3dc44d.tar.bz2
fengari-a4cbe2f7cabe1dd4bb91c8e3909c53c0bd3dc44d.zip
src/lparser.js: Send localvarliterals via caching table
Diffstat (limited to 'src')
-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) {