-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem?
The current playground is pretty bare, and the current method of capturing what's printed is not that good (though I have no clue how to make it better):
log = console.log;
var can_capture = false;
window.console.log = (message) => {
log(message);
if (can_capture)
document.getElementById("output").value += message + "\n";
};
var Module = {
onRuntimeInitialized: function () {
document.getElementById("run").addEventListener("click", () => {
document.getElementById("output").value = "";
const code = document.getElementById("code").value;
try {
can_capture = true;
Module.run(code);
} catch (e) {
document.getElementById("output").value = e;
}
can_capture = false;
});
}
};Describe the solution you would like
- Improve the UI/UX of the playground (without having to add Vue, React or other huge libraries)
- Add more utils / builtins to ArkEmscripten to play with DOM and JavaScript values / functions
- Find a better way to get ArkScript output
- Add more tests (currently not tested in the CI, only the compilation is tested)
Is it a big modification to the language? Leave it if you don't know
- Breaking change
- Compiler/syntax modifications
- Runtime modifications (standard library, modules, packages...)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
