Issue #1382 - Remove incorrect assertion.

Tag #2090 #2095
This commit is contained in:
Moonchild 2023-01-29 19:16:16 +01:00 committed by roytam1
commit 8f3badf882

View file

@ -1696,7 +1696,6 @@ js::NativeDefineDataProperty(JSContext* cx, Handle<NativeObject*> obj, HandleId
// Off-thread callers should not get here: they must call this
// function only with known-valid arguments. Populating a new
// PlainObject with configurable properties is fine.
MOZ_ASSERT(!cx->isHelperThreadContext());
result.reportError(cx, obj, id);
return false;
}