From 0c48b50fc0f9f447153e2bdb935fb940ca18a745 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 11:21:01 +1000 Subject: Proto.source should be a string, not a TValue Fixes ar.source being internal tvalue --- src/ldblib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldblib.js') 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}`)); -- cgit v1.2.3-54-g00ecf