diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-08 18:26:14 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-08 18:26:14 +1000 |
commit | 636b1d8a5a566fac0c9c61fed44049c659435a56 (patch) | |
tree | 99ee78a56e98f09bcb7a1255b34b5638b8c776f3 /src/lapi.js | |
parent | 48d20ce3e2b38d1da536e42f225401fc06147d2a (diff) | |
download | fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.gz fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.bz2 fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.zip |
Introduce a TString class
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js index 38c8bd7..97cb061 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -512,7 +512,7 @@ const aux_upvalue = function(L, fi, n) { if (!(1 <= n && n <= p.upvalues.length)) return null; let name = p.upvalues[n-1].name; return { - name: name ? name : defs.to_luastring("(*no name)", true), + name: name ? name.getstr() : defs.to_luastring("(*no name)", true), val: f.upvals[n-1].val() }; } |