From ade0b217415788026a2e676e9de004e60e818f43 Mon Sep 17 00:00:00 2001 From: Miyo <135030944+yuri-kiss@users.noreply.github.com> Date: Thu, 11 Jul 2024 19:32:03 -0400 Subject: [PATCH] Expose ArgumentTypeMap --- src/engine/runtime.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 169c880f7d7..2c5ffd65fe8 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -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 + }); + } + }; } /**