diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-05 11:21:01 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-05 13:29:35 +1000 |
commit | 0c48b50fc0f9f447153e2bdb935fb940ca18a745 (patch) | |
tree | 38b91b9c304ae9263966d417e60e88f6a67f341e /src/lparser.js | |
parent | b3e2cedff9b47285709d83d9dc53dde5f2ba19e5 (diff) | |
download | fengari-0c48b50fc0f9f447153e2bdb935fb940ca18a745.tar.gz fengari-0c48b50fc0f9f447153e2bdb935fb940ca18a745.tar.bz2 fengari-0c48b50fc0f9f447153e2bdb935fb940ca18a745.zip |
Proto.source should be a string, not a TValue
Fixes ar.source being internal tvalue
Diffstat (limited to 'src/lparser.js')
-rw-r--r-- | src/lparser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lparser.js b/src/lparser.js index b8cfeed..d27f67a 100644 --- a/src/lparser.js +++ b/src/lparser.js @@ -1550,7 +1550,7 @@ const luaY_parser = function(L, z, buff, dyd, name, firstchar) { lexstate.h = new TValue(defs.CT.LUA_TTABLE, ltable.luaH_new(L)); /* create table for scanner */ L.stack[L.top++] = lexstate.h; funcstate.f = cl.p = new Proto(L); - funcstate.f.source = new TValue(defs.CT.LUA_TLNGSTR, name); + funcstate.f.source = name; lexstate.buff = buff; lexstate.dyd = dyd; dyd.actvar.n = dyd.gt.n = dyd.label.n = 0; |