No issue - Fix incorrect js message ref in js shell.

This commit is contained in:
Moonchild 2025-03-25 00:10:53 +01:00 committed by roytam1
commit c31cda6c74

View file

@ -5355,7 +5355,7 @@ GetSharedArrayBuffer(JSContext* cx, unsigned argc, Value* vp)
SharedArrayRawBuffer* buf = sharedArrayBufferMailbox;
if (buf) {
if (!buf->addReference()) {
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_SC_SAB_REFCNT_OFLO);
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_SC_SAB_TOO_MANY_REFS);
return false;
}