Commit 023dd9e
Add js() escape hatch for raw JavaScript emission
When JST encounters a call to a function named "js", it emits the
string argument as raw JavaScript code instead of compiling the call.
Used by Therapy.jl to call browser APIs (document, localStorage, etc.)
from compiled @island handlers and effects.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f1bc4f4 commit 023dd9e
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
971 | 988 | | |
972 | 989 | | |
973 | 990 | | |
| |||
0 commit comments