From 1cab03b0f0675a86617a7de1749ef3d519a4c334 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 12:50:18 +1000 Subject: Don't wrap lexer/parser strings in a TValue Fixes issue where internal TValues get exposed via lua_Debug structure --- src/ldump.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ldump.js') diff --git a/src/ldump.js b/src/ldump.js index e26a214..1298a03 100644 --- a/src/ldump.js +++ b/src/ldump.js @@ -136,14 +136,14 @@ const DumpDebug = function(f, D) { n = D.strip ? 0 : f.locvars.length; DumpInt(n, D); for (let i = 0; i < n; i++) { - DumpString(f.locvars[i].varname.value, D); + DumpString(f.locvars[i].varname, D); DumpInt(f.locvars[i].startpc, D); DumpInt(f.locvars[i].endpc, D); } n = D.strip ? 0 : f.upvalues.length; DumpInt(n, D); for (let i = 0; i < n; i++) - DumpString(f.upvalues[i].name.value, D); + DumpString(f.upvalues[i].name, D); }; const DumpFunction = function(f, psource, D) { -- cgit v1.2.3-70-g09d2