diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-30 15:28:04 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-30 15:28:04 -0400 |
| commit | 77bd054713bc698a67ccc38a0b6fe07ffc161381 (patch) | |
| tree | 46274db054b50e9388751412e86dd2c5ce4d39f1 /docs/bqn.js | |
| parent | 2187c15b54f8b2803586e0abdb7c7bc94daa83eb (diff) | |
Use 𝕩 as the error message in !𝕩
Diffstat (limited to 'docs/bqn.js')
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index b2ce92be..ccef4a07 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -169,7 +169,7 @@ let run = (B,O,F,S,L,T,src,env) => { // Bytecode, Objects, Blocks, Bodies, Locat // Runtime let assertFn = pre => (x,w) => { - if (x!==1) throw {kind:pre, message:w}; return x; + if (x!==1) throw {kind:pre, message:has(w)?w:x}; return x; } let arr = (r,sh,fill) => {r.sh=sh;r.fill=fill;return r;} let list = (l,fill) => arr(l,[l.length],fill); |
