From ad49a9b26dff08a2e308dc93aa89a838c8ae712b Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 19 May 2023 22:45:14 +0300 Subject: [PATCH] guarantee a space fill to compilation --- src/load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/load.c b/src/load.c index 37d418bc..e6970471 100644 --- a/src/load.c +++ b/src/load.c @@ -187,6 +187,7 @@ B bqn_repr(B x) { 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); Block* r = load_compObj(c2G(comp, incG(compArg), inc(str)), str, path, NULL); dec(path); dec(args); POP_COMP; popCatch(); @@ -197,6 +198,7 @@ Block* bqn_comp(B str, B path, B args) { // consumes all } 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); B vName = emptyHVec(); B vDepth = emptyIVec(); if (repl && (!sc || sc->psc)) thrM("VM compiler: REPL mode must be used at top level scope");