Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
@@ -37,15 +37,17 @@ public:
|
||||
NS_DECL_NSIINCREMENTALSTREAMLOADEROBSERVER
|
||||
NS_DECL_NSIRUNNABLE
|
||||
|
||||
AsyncScriptCompiler(JSContext* aCx, nsIGlobalObject* aGlobal,
|
||||
AsyncScriptCompiler(JSContext* aCx,
|
||||
nsIGlobalObject* aGlobal,
|
||||
const nsACString& aURL,
|
||||
const CompileScriptOptionsDictionary& aOptions,
|
||||
Promise* aPromise)
|
||||
: mOptions(aCx)
|
||||
, mURL(aURL)
|
||||
, mGlobalObject(aGlobal)
|
||||
, mPromise(aPromise)
|
||||
, mCharset(aOptions.mCharset)
|
||||
: mozilla::Runnable("AsyncScriptCompiler")
|
||||
, mOptions(aCx)
|
||||
, mURL(aURL)
|
||||
, mGlobalObject(aGlobal)
|
||||
, mPromise(aPromise)
|
||||
, mCharset(aOptions.mCharset)
|
||||
{
|
||||
mOptions.setVersion(JSVERSION_DEFAULT)
|
||||
.setNoScriptRval(!aOptions.mHasReturnValue)
|
||||
|
||||
Reference in New Issue
Block a user