1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 22:53:16 +00:00

Check that new source location is a string

This commit is contained in:
Michael Camilleri 2021-02-22 12:50:44 +09:00
parent 855a9a01fc
commit f381a9c773
No known key found for this signature in database
GPG Key ID: 7EB218A48DF8B572

View File

@ -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)