Closed 64kramsystem closed 6 years ago
@st0012 shouldn't there be a return after https://github.com/goby-lang/goby/blob/29e1190ef4270529a43f16e34a1d275caeb080ad/vm/thread.go#L82? It doesn't fix the error, but I think execution should halt if the file can't be read.
yes there should be a return, I must missed it
Closed by #645.
When an expected standard library file is not found, eg.
lib/range_enumerator.gb
the interpreter panics.Although this is an abnormal setup case, I think there should be a cleaner/user friendlier way of handling the requires, which would raise the standard InternalError.
Test case: