mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fixes
This commit is contained in:
@@ -58,8 +58,8 @@ type Node = ToplevelCall | Call
|
||||
|
||||
// TODO just export const Iframe_Function?
|
||||
const make_function = (...args) => {
|
||||
if(globalThis.process != null) {
|
||||
// Tests are run in Node.js
|
||||
if(globalThis.run_window == null) {
|
||||
// Code is executed in test env
|
||||
return new Function(...args)
|
||||
} else {
|
||||
// Code run in browser and user opened run_window
|
||||
|
||||
Reference in New Issue
Block a user