mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Fix Value::isGCThing footgun, stop returning true for NullValue
This commit is contained in:
parent
9d2e0ff0c4
commit
10b24b8110
31 changed files with 87 additions and 103 deletions
|
|
@ -1148,8 +1148,8 @@ EventRunnable::PreDispatch(WorkerPrivate* /* unused */)
|
|||
} else {
|
||||
bool doClone = true;
|
||||
JS::Rooted<JS::Value> transferable(cx);
|
||||
JS::Rooted<JSObject*> obj(cx, response.isObjectOrNull() ?
|
||||
response.toObjectOrNull() : nullptr);
|
||||
JS::Rooted<JSObject*> obj(cx, response.isObject() ?
|
||||
&response.toObject() : nullptr);
|
||||
if (obj && JS_IsArrayBufferObject(obj)) {
|
||||
// Use cached response if the arraybuffer has been transfered.
|
||||
if (mProxy->mArrayBufferResponseWasTransferred) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue