From e781ae21ee06db0908f01e5bae9fa3f8eaa6fc4e Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 20 May 2023 13:22:19 +0300 Subject: [PATCH] give PUSH_COMP access to the updated source string --- src/load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/load.c b/src/load.c index e6970471..18feca9d 100644 --- a/src/load.c +++ b/src/load.c @@ -186,8 +186,8 @@ B bqn_repr(B x) { if (CATCH) { POP_COMP; rethrow(); } static NOINLINE Block* bqn_compc(B str, B path, B args, B comp, B compArg) { // consumes str,path,args - PUSH_COMP; str = chr_squeeze(str); + PUSH_COMP; Block* r = load_compObj(c2G(comp, incG(compArg), inc(str)), str, path, NULL); dec(path); dec(args); POP_COMP; popCatch(); @@ -197,8 +197,8 @@ Block* bqn_comp(B str, B path, B args) { // consumes all return bqn_compc(str, path, args, load_comp, load_compArg); } Block* bqn_compScc(B str, B path, B args, Scope* sc, B comp, B rt, bool repl) { // consumes str,path,args - PUSH_COMP; str = chr_squeeze(str); + PUSH_COMP; B vName = emptyHVec(); B vDepth = emptyIVec(); if (repl && (!sc || sc->psc)) thrM("VM compiler: REPL mode must be used at top level scope");