Issue #2046 - correct debug assert for intl_FormatRelativeTime()

Probably fallout from the refactoring in #2109
Tag #1382
This commit is contained in:
Moonchild 2023-03-04 20:42:22 +01:00 committed by roytam1
commit 3fb11e542c

View file

@ -214,7 +214,7 @@ bool
js::intl_FormatRelativeTime(JSContext* cx, unsigned argc, Value* vp)
{
CallArgs args = CallArgsFromVp(argc, vp);
MOZ_ASSERT(args.length() == 3);
MOZ_ASSERT(args.length() == 4);
RootedObject relativeTimeFormat(cx, &args[0].toObject());