Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
550c82d5
Unverified
Commit
550c82d5
authored
Feb 13, 2020
by
Jonah Williams
Committed by
GitHub
Feb 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] initialize web stack trace formatter (#50680)
parent
d3a41816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
bootstrap.dart
packages/flutter_tools/lib/src/web/bootstrap.dart
+16
-2
No files found.
packages/flutter_tools/lib/src/web/bootstrap.dart
View file @
550c82d5
...
...
@@ -185,9 +185,23 @@ for (let moduleName of Object.getOwnPropertyNames(modulePaths)) {
// Create the main module loaded below.
define("main_module.bootstrap", ["
$entrypoint
", "dart_sdk"], function(app, dart_sdk) {
dart_sdk.dart.setStartAsyncSynchronously(true);
dart_sdk._isolate_helper.startRootIsolate(() => {}, []);
dart_sdk._debugger.registerDevtoolsFormatter();
let voidToNull = () => (voidToNull = dart_sdk.dart.constFn(dart_sdk.dart.fnType(dart_sdk.core.Null, [dart_sdk.dart.void])))();
\
$dartLoader
.getModuleLibraries = dart_sdk.dart.getModuleLibraries;
if (window.
\
$dartStackTraceUtility
&& !window.
\
$dartStackTraceUtility
.ready) {
window.
\
$dartStackTraceUtility
.ready = true;
let dart = dart_sdk.dart;
window.
\
$dartStackTraceUtility
.setSourceMapProvider(
function(url) {
url = url.replace(baseUrl, '
/
');
var module = window.
\
$dartLoader
.urlToModuleId.get(url);
if (!module) return null;
return dart.getSourceMap(module);
});
}
if (typeof document != '
undefined
') {
window.postMessage({ type: "DDC_STATE_CHANGE", state: "start" }, "*");
}
dart_sdk._isolate_helper.startRootIsolate(() => {}, []);
// See the generateMainModule doc comment.
var child = {};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment