diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_run_function.js')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_run_function.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/js/scripting-lang/scratch_tests/test_run_function.js b/js/scripting-lang/scratch_tests/test_run_function.js deleted file mode 100644 index c79f5e8..0000000 --- a/js/scripting-lang/scratch_tests/test_run_function.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Test the run function directly - */ - -import { run } from '../lang.js'; - -const scriptContent = ` -/* Simple test script */ - -/* Get current state */ -state : ..listen; - -/* Emit the state */ -..emit state; -`; - -try { - console.log('Testing run function...'); - const result = run(scriptContent, {}, null); - console.log('Result:', result); -} catch (error) { - console.error('Error:', error); - console.error('Stack:', error.stack); -} \ No newline at end of file |