return Check_Success;
}
- if (!context.cycle_detected) {
+ //
+ // This has to be cycle_almost_detected, not cycle_detected, because interface
+ // constraints relay on Check_Error being returned, not Check_Yield_Macro. For
+ // this reason, I have to produce an error at the last minute, BEFORE the loop
+ // enters a cycle detected state, when there is no point of return.
+ if (!context.cycle_almost_detected) {
// Skipping the slightly expensive symbol lookup
// below by not using YIELD_ERROR.
return Check_Yield_Macro;
CheckStatus cs = check_expression(&ic->expr);
if (cs == Check_Return_To_Symres || cs == Check_Yield_Macro) {
+ onyx_clear_errors();
return cs;
}
return buff->length - prev_len;
}
+/*
static i32 output_onyx_func_offset_section(OnyxWasmModule* module, bh_buffer* buff) {
i32 prev_len = buff->length;
return buff->length - prev_len;
}
+*/
#ifdef ENABLE_DEBUG_INFO
static i32 output_ovm_debug_sections(OnyxWasmModule* module, bh_buffer* buff) {
// TODO: Consider if this should always be included?
// It can amount to a lot of extra data.
- output_onyx_func_offset_section(module, buffer);
+ // output_onyx_func_offset_section(module, buffer);
}
void onyx_wasm_module_write_to_file(OnyxWasmModule* module, bh_file file) {