This commit is contained in:
2026-01-23 15:06:10 -06:00
parent 4f7e7ab591
commit 6c07f11992
9 changed files with 18 additions and 27 deletions

View File

@@ -124,10 +124,7 @@ static JSValue js_mersenne_use_call(JSContext *js, JSValueConst new_target, int
JS_SetOpaque(obj, mrand);
// Store seed as a read-only property
JS_DefinePropertyValueStr(js, obj, "seed",
JS_NewFloat64(js, seed),
JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE // Read-only (no WRITABLE)
);
JS_SetPropertyStr(js, obj, "seed", JS_NewFloat64(js, seed));
return obj;
}