source-academy / modules

Modules that can be imported by programs in Source Academy, an online experiential environment for computational thinking
Apache License 2.0
8 stars 28 forks source link

[WIP] Callback for repl module evaluator using default_js_slang #288

Open 8kdesign opened 7 months ago

8kdesign commented 7 months ago

Description

Do not merge. Just a hacky sample code for how result of default_js_slang can be obtained. If possible, default_js_slang should be modified to process and return the result.

Added ability to receive callback with result when default_js_slang is used in repl module.

Type of change

How Has This Been Tested?

Checklist: