Skip to content

Commit 954c39d

Browse files
committed
Map more properties to fake compatibility layer this
1 parent c553490 commit 954c39d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/compiler/old-compiler-compatibility.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ class ScriptTreeGeneratorStub {
3535
this.real = real;
3636

3737
this.fakeThis = {
38+
thread: real.thread,
39+
target: real.target,
40+
blocks: real.blocks,
41+
runtime: real.runtime,
42+
stage: real.stage,
43+
script: real.script,
44+
3845
/**
3946
* @param parentBlock Parent VM block.
4047
* @param {string} inputName Name of input.
@@ -231,6 +238,17 @@ class JSGeneratorStub {
231238
this.real = real;
232239

233240
this.fakeThis = {
241+
script: real.script,
242+
ir: real.ir,
243+
target: real.target,
244+
245+
get frames () {
246+
return real.frames;
247+
},
248+
get currentFrame () {
249+
return real.currentFrame;
250+
},
251+
234252
get source () {
235253
return real.source;
236254
},

0 commit comments

Comments
 (0)