Bug 780269 - Pass (X-)SourceMap header to SpiderMonkey for workers. r=perry

Differential Revision: https://phabricator.services.mozilla.com/D70293
This commit is contained in:
Logan Smyth
2020-07-07 21:19:58 +00:00
parent ff8a3cf3a3
commit af5b174fa2
13 changed files with 165 additions and 8 deletions

View File

@@ -307,7 +307,6 @@ class ScriptLoadRequest
bool mScriptFromHead; // Synchronous head script block loading of other non
// js/css content.
bool mIsInline; // Is the script inline or loaded?
bool mHasSourceMapURL; // Does the HTTP header have a source map url?
bool mInDeferList; // True if we live in mDeferRequests.
bool mInAsyncList; // True if we live in mLoadingAsyncRequests or
// mLoadedAsyncRequests.
@@ -323,7 +322,7 @@ class ScriptLoadRequest
RefPtr<ScriptFetchOptions> mFetchOptions;
JS::OffThreadToken* mOffThreadToken; // Off-thread parsing token.
nsString mSourceMapURL; // Holds source map url for loaded scripts
Maybe<nsString> mSourceMapURL; // Holds source map url for loaded scripts
// Holds the top-level JSScript that corresponds to the current source, once
// it is parsed, and planned to be saved in the bytecode cache.