Add janet_loop() call to static binaries.
@@ -512,11 +512,14 @@ int main(int argc, const char **argv) {
fiber->env = temptab;
Janet out;
JanetSignal result = janet_continue(fiber, janet_wrap_nil(), &out);
- if (result) {
+ if (result != JANET_SIGNAL_OK && result < JANET_SIGNAL_USER0) {
janet_stacktrace(fiber, out);
janet_deinit();
return result;
}
+ #ifdef JANET_NET
+ janet_loop();
+ #endif
janet_deinit();
return 0;
}
