diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-05 12:50:18 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-05 13:32:04 +1000 |
commit | 1cab03b0f0675a86617a7de1749ef3d519a4c334 (patch) | |
tree | d490c3a10fd18d793467497da954d74998781158 /src/lundump.js | |
parent | 0299958592ed34cbd6e8cf01891fc5bbaee71750 (diff) | |
download | fengari-1cab03b0f0675a86617a7de1749ef3d519a4c334.tar.gz fengari-1cab03b0f0675a86617a7de1749ef3d519a4c334.tar.bz2 fengari-1cab03b0f0675a86617a7de1749ef3d519a4c334.zip |
Don't wrap lexer/parser strings in a TValue
Fixes issue where internal TValues get exposed via lua_Debug structure
Diffstat (limited to 'src/lundump.js')
-rw-r--r-- | src/lundump.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lundump.js b/src/lundump.js index 1d2d079..5d158bd 100644 --- a/src/lundump.js +++ b/src/lundump.js @@ -204,7 +204,7 @@ class BytecodeParser { n = this.readInt(); for (let i = 0; i < n; i++) { f.locvars[i] = { - varname: new lobject.TValue(defs.CT.LUA_TLNGSTR, defs.to_luastring(this.readString())), + varname: defs.to_luastring(this.readString()), startpc: this.readInt(), endpc: this.readInt() }; |