diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index 305db2910..507ca1664 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -348,7 +348,10 @@ retry: DEBUG_MSG (WASM, module_inst, "Calling shape() failed: %s", wasm_runtime_get_exception (module_inst)); if (retried) + { + DEBUG_MSG (WASM, font, "Giving up..."); goto fail; + } buffer->successful = true; retried = true; release_shape_plan (face_data, plan);