partly import changes from tenfourfox:

- #651: M1767365+backbugs M1757604 M1771774 M1776658 (bc6daa0ae)
This commit is contained in:
roytam1 2022-09-19 16:18:37 +08:00
commit 591552c5bb
9 changed files with 84 additions and 43 deletions

View file

@ -118,7 +118,7 @@ ToJSValue(JSContext* aCx,
// Make sure we're called in a compartment
MOZ_ASSERT(JS::CurrentGlobalOrNull(aCx));
aValue.setNumber(aArgument);
aValue.set(JS_NumberValue(aArgument));
return true;
}