Skip to content

Commit

Permalink
Exportsgit add .!
Browse files Browse the repository at this point in the history
  • Loading branch information
AshimeeAlt committed Sep 23, 2024
1 parent 1a20823 commit 31922ee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"format-message": "6.2.1",
"htmlparser2": "3.10.0",
"immutable": "3.8.2",
"json5": "^2.2.3",
"scratch-parser": "github:Unsandboxed/scratch-parser#master",
"scratch-sb1-converter": "0.2.7",
"scratch-translate-extension-languages": "0.0.20191118205314",
Expand Down
1 change: 1 addition & 0 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ class Runtime extends EventEmitter {
* Export some internal values for extensions.
*/
this.exports = {
ExtendedJSON,
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 ({
Expand Down
4 changes: 4 additions & 0 deletions src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ class VirtualMachine extends EventEmitter {
Sprite,
RenderedTarget,
JSZip,
Buffer,
Base64: Base64Util,
RESERVED_NAMES,
JSON5: require('json5'),

i_will_not_ask_for_help_when_these_break: () => {
console.warn('You are using unsupported APIs. WHEN your code breaks, do not expect help.');
Expand Down

0 comments on commit 31922ee

Please sign in to comment.