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/ldblib.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/ldblib.js')
-rw-r--r-- | src/ldblib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldblib.js b/src/ldblib.js index 4563eb0..ce0e19d 100644 --- a/src/ldblib.js +++ b/src/ldblib.js @@ -137,7 +137,7 @@ const db_getinfo = function(L) { lauxlib.luaL_argerror(L, arg + 2, lua.to_luastring("invalid option", true)); lua.lua_newtable(L); /* table to collect results */ if (options.indexOf('S'.charCodeAt(0)) > -1) { - settabss(L, lua.to_luastring("source", true), ar.source.value); + settabss(L, lua.to_luastring("source", true), ar.source); settabss(L, lua.to_luastring("short_src", true), ar.short_src); settabss(L, lua.to_luastring("linedefined", true), lua.to_luastring(`${ar.linedefined}`)); settabss(L, lua.to_luastring("lastlinedefined", true), lua.to_luastring(`${ar.lastlinedefined}`)); |