Skip to content

Commit

Permalink
export Thread & Thread._StackFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jan 28, 2024
1 parent dd497b8 commit f45ab3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/engine/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,4 +514,7 @@ class Thread {
}
}

// for extensions
Thread._StackFrame = _StackFrame;

module.exports = Thread;
5 changes: 3 additions & 2 deletions src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,13 @@ class VirtualMachine extends EventEmitter {
RenderedTarget,
JSZip,

guaranteed_to_break_and_you_will_not_receive_support: () => {
i_will_not_ask_for_help_when_these_break: () => {
console.warn('You are using unsupported APIs. WHEN your code breaks, do not expect help.');
return ({
JSGenerator: require('./compiler/jsgen.js'),
IRGenerator: require('./compiler/irgen.js').IRGenerator,
ScriptTreeGenerator: require('./compiler/irgen.js').ScriptTreeGenerator
ScriptTreeGenerator: require('./compiler/irgen.js').ScriptTreeGenerator,
Thread: require('./engine/thread.js')
});
}
};
Expand Down

0 comments on commit f45ab3e

Please sign in to comment.