Backed out 3 changesets (bug 1752209, bug 1752212) for causing build bustages on nsXULPrototypeCache.cpp. CLOSED TREE
Backed out changeset 8f10b666008a (bug 1752209) Backed out changeset 557c428fb6bc (bug 1752212) Backed out changeset e38fbd381ed3 (bug 1752212)
This commit is contained in:
@@ -81,8 +81,7 @@ mozJSSubScriptLoader::~mozJSSubScriptLoader() = default;
|
||||
|
||||
NS_IMPL_ISUPPORTS(mozJSSubScriptLoader, mozIJSSubScriptLoader)
|
||||
|
||||
#define JSSUB_CACHE_PREFIX(aScopeType, aCompilationTarget) \
|
||||
"jssubloader/" aScopeType "/" aCompilationTarget
|
||||
#define JSSUB_CACHE_PREFIX(aType) "jssubloader/" aType
|
||||
|
||||
static void SubscriptCachePath(JSContext* cx, nsIURI* uri,
|
||||
JS::HandleObject targetObj,
|
||||
@@ -90,10 +89,11 @@ static void SubscriptCachePath(JSContext* cx, nsIURI* uri,
|
||||
// StartupCache must distinguish between non-syntactic vs global when
|
||||
// computing the cache key.
|
||||
if (!JS_IsGlobalObject(targetObj)) {
|
||||
PathifyURI(JSSUB_CACHE_PREFIX("non-syntactic", "script"), uri, cachePath);
|
||||
cachePath.AssignLiteral(JSSUB_CACHE_PREFIX("non-syntactic"));
|
||||
} else {
|
||||
PathifyURI(JSSUB_CACHE_PREFIX("global", "script"), uri, cachePath);
|
||||
cachePath.AssignLiteral(JSSUB_CACHE_PREFIX("global"));
|
||||
}
|
||||
PathifyURI(uri, cachePath);
|
||||
}
|
||||
|
||||
static void ReportError(JSContext* cx, const nsACString& msg) {
|
||||
|
||||
Reference in New Issue
Block a user