mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
WIP
This commit is contained in:
@@ -610,6 +610,7 @@ export const find_call = (state, index) => {
|
||||
if(call != null) {
|
||||
if(call.has_more_children) {
|
||||
active_calltree_node = eval_expand_calltree_node(
|
||||
// TODO copy eval_cxt?
|
||||
state.eval_cxt,
|
||||
state.parse_result,
|
||||
call
|
||||
@@ -625,6 +626,7 @@ export const find_call = (state, index) => {
|
||||
}
|
||||
} else {
|
||||
const find_result = eval_find_call(
|
||||
// TODO copy eval_cxt?
|
||||
state.eval_cxt,
|
||||
state.parse_result,
|
||||
state.calltree,
|
||||
|
||||
@@ -216,13 +216,6 @@ const io_patch = (path, use_context = false) => {
|
||||
}
|
||||
|
||||
export const apply_io_patches = () => {
|
||||
// TODO remove, only for dev
|
||||
// TODO test open_run_window
|
||||
if(cxt.window.__io_patched) {
|
||||
throw new Error('illegal state')
|
||||
}
|
||||
cxt.window.__io_patched = true
|
||||
|
||||
io_patch(['Math', 'random'])
|
||||
|
||||
io_patch(['setTimeout'])
|
||||
|
||||
@@ -202,7 +202,7 @@ export const do_eval_expand_calltree_node = (cxt, node) => {
|
||||
synchronous for simplicity
|
||||
*/
|
||||
export const do_eval_find_call = (cxt, calltree, location) => {
|
||||
// TODO remove
|
||||
// Sanity check
|
||||
if(cxt.children != null) {
|
||||
throw new Error('illegal state')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user