fix: use correct env declarations in bootstrap.js

This commit is contained in:
TopchetoEU 2023-12-24 14:08:20 +02:00
parent d3571d6ee2
commit cad4f34b51
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -63,7 +63,7 @@
version++; version++;
if (!environments[env.id]) environments[env.id] = [] if (!environments[env.id]) environments[env.id] = []
declSnapshots = environments[env.id]; var decls = declSnapshots = environments[env.id];
var emit = service.getEmitOutput("/src.ts"); var emit = service.getEmitOutput("/src.ts");
var diagnostics = [] var diagnostics = []
@ -94,7 +94,7 @@
return { return {
function: function () { function: function () {
var val = compiled.function.apply(this, arguments); var val = compiled.function.apply(this, arguments);
if (declaration !== '') declSnapshots.push(ts.ScriptSnapshot.fromString(declaration)); if (declaration !== '') decls.push(ts.ScriptSnapshot.fromString(declaration));
return val; return val;
}, },
breakpoints: compiled.breakpoints, breakpoints: compiled.breakpoints,