diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-02 16:17:45 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-02 16:17:45 -0400 |
| commit | c7293256857d96850e450798db3076ed5f55b5fb (patch) | |
| tree | 1ff3eeca21e8c53440a9d0493059d2ee11de460f /docs | |
| parent | 3527b6c5305a896987ca897e16582d65c2d02b60 (diff) | |
Fix missing variable IDs in REPL scopes
Diffstat (limited to 'docs')
| -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 d03be83f..6ed88162 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -131,7 +131,7 @@ let run = (B,O,F,S,L,T,src,env) => { // Bytecode, Objects, Blocks, Bodies, Locat let c,vid,def; if (isnum(ind)) { [c,vid] = gen(ind); - if (useenv) c = "const e=env;"+c; + if (useenv) { c = "const e=env;"+c; env.vid=vid; } else if (imm) c = "const e=[...e2];e.vid=vid;e.p=oe;"+c; else c = "const fn=(x, w)=>{const e=[...e2];e.vid=vid;e.p=oe;e[0]=fn;e[1]=x;e[2]=w;"+c+"};"+repdf[type]+"return fn;"; c="do {"+c+"} while (0);\n"; |
