Bug 1724236 - Move profiler label and JSAutoRealm out of JSExecutionContext r=arai
Differential Revision: https://phabricator.services.mozilla.com/D218444
This commit is contained in:
@@ -3009,6 +3009,10 @@ nsresult ScriptLoader::EvaluateScript(nsIGlobalObject* aGlobalObject,
|
||||
if (erv.Failed()) {
|
||||
return EvaluationExceptionToNSResult(erv);
|
||||
}
|
||||
mozilla::AutoProfilerLabel autoProfilerLabel("JSExecutionContext",
|
||||
/* dynamicStr */ nullptr,
|
||||
JS::ProfilingCategoryPair::JS);
|
||||
JSAutoRealm autoRealm(cx, global);
|
||||
InstantiateClassicScriptFromAny(cx, exec, options, aRequest, erv);
|
||||
|
||||
if (!erv.Failed()) {
|
||||
|
||||
Reference in New Issue
Block a user