add missing goto on error in js_build_module_ns()

The goto in question was accidentally removed in 159fe28.
This commit is contained in:
Igor Burago 2025-11-04 13:52:09 +08:00
parent 080c01f346
commit 3691f441f7

@ -29728,7 +29728,9 @@ static JSValue js_build_module_ns(JSContext *ctx, JSModuleDef *m)
if (JS_DefineAutoInitProperty(ctx, obj,
en->export_name,
JS_AUTOINIT_ID_MODULE_NS,
m, JS_PROP_ENUMERABLE | JS_PROP_WRITABLE) < 0)
m, JS_PROP_ENUMERABLE | JS_PROP_WRITABLE) < 0) {
goto fail;
}
break;
default:
break;