Bug 1040316 - Move AutoStableStringChars out of friendapi into public API. r=jandem

This commit is contained in:
Jeff Walden
2018-08-20 07:44:44 -07:00
parent da7382a324
commit c5cf4f39a4
32 changed files with 202 additions and 102 deletions

View File

@@ -11,6 +11,7 @@
#include "mozilla/dom/WorkerPrivate.h"
#include "jsapi.h"
#include "js/StableStringChars.h"
#include "xpcpublic.h"
#include "nsIGlobalObject.h"
#include "nsIDocShell.h"
@@ -710,7 +711,7 @@ AutoEntryScript::DocshellEntryMonitor::Entry(JSContext* aCx, JSFunction* aFuncti
nsString filename;
uint32_t lineNumber = 0;
js::AutoStableStringChars functionName(aCx);
JS::AutoStableStringChars functionName(aCx);
if (rootedFunction) {
JS::Rooted<JSString*> displayId(aCx, JS_GetFunctionDisplayId(rootedFunction));
if (displayId) {