Bug 1631713 - Align the maximum memory usage of worklets on workers. r=karlt

Differential Revision: https://phabricator.services.mozilla.com/D71966
This commit is contained in:
Paul Adenot 2020-04-23 05:17:04 +00:00
parent 4f5d44905a
commit 4e60c5edf0

View File

@ -348,6 +348,8 @@ void WorkletThread::EnsureCycleCollectedJSContext(JSRuntime* aParentRuntime) {
return;
}
JS_SetGCParameter(context->Context(), JSGC_MAX_BYTES, uint32_t(-1));
// FIXME: JS_SetDefaultLocale
// FIXME: JSSettings
// FIXME: JS_SetSecurityCallbacks