Skip to content

Commit

Permalink
Expose ArgumentTypeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-kiss authored Jul 11, 2024
1 parent 30a614d commit ade0b21
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,18 @@ class Runtime extends EventEmitter {
* Total number of finished or errored scratch-storage load() requests since the runtime was created or cleared.
*/
this.finishedAssetRequests = 0;

/**
* Export some internal values for extensions.
*/
this.exports = {
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 ({
ArgumentTypeMap
});
}
};
}

/**
Expand Down

0 comments on commit ade0b21

Please sign in to comment.