From f381a9c773374b38e3e2fecc9b30214a64f4fb5a Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Mon, 22 Feb 2021 12:50:44 +0900 Subject: [PATCH] Check that new source location is a string --- src/boot/boot.janet | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index c5f92089..c3082919 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -2173,7 +2173,9 @@ (buffer/clear buf)) [:source new-where] - (set where new-where) + (if (string? new-where) + (set where new-where) + (set where default-where)) (do (var pindex 0)