Skip to content

Commit 52378c0

Browse files
authored
Cleanup the unused DDC bootstrap flag (#2772)
Remove use of the `setStartAsyncSynchronously` flag in the DDC bootstrap. This is long overdue and unblocks removing the unused flag from the DDC runtime.
1 parent 2d2e5cf commit 52378c0

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎frontend_server_client/lib/src/dartdevc_bootstrap_amd.dart‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ String generateAmdMainModule({required String entrypoint}) {
5151
return '''/* ENTRYPOINT_EXTENTION_MARKER */
5252
// Create the main module loaded below.
5353
require(["$entrypoint.lib.js", "dart_sdk"], function(app, dart_sdk) {
54-
dart_sdk.dart.setStartAsyncSynchronously(true);
5554
dart_sdk._debugger.registerDevtoolsFormatter();
5655
5756
// See the generateMainModule doc comment.

‎frontend_server_common/lib/src/bootstrap.dart‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ String generateMainModule({required String entrypoint}) {
128128
129129
// Create the main module loaded below.
130130
define("main_module.bootstrap", ["$entrypoint", "dart_sdk"], function(app, dart_sdk) {
131-
dart_sdk.dart.setStartAsyncSynchronously(true);
132131
dart_sdk._isolate_helper.startRootIsolate(() => {}, []);
133132
dart_sdk._debugger.registerDevtoolsFormatter();
134133
let voidToNull = () => (voidToNull = dart_sdk.dart.constFn(dart_sdk.dart.fnType(dart_sdk.core.Null, [dart_sdk.dart.void])))();
@@ -180,7 +179,7 @@ $_simpleLoaderScript
180179
prerequisiteLoads.push(forceLoadModule(prerequisiteScripts[i].src));
181180
}
182181
Promise.all(prerequisiteLoads).then((_) => afterPrerequisiteLogic());
183-
182+
184183
// Save the current script so we can access it in a closure.
185184
var _currentScript = document.currentScript;
186185
@@ -371,7 +370,6 @@ String generateDDCMainModule({
371370
372371
let dart_sdk = dart_library.import('dart_sdk', appName);
373372
374-
dart_sdk.dart.setStartAsyncSynchronously(true);
375373
dart_sdk._debugger.registerDevtoolsFormatter();
376374
dart_sdk._isolate_helper.startRootIsolate(() => {}, []);
377375

0 commit comments

Comments
 (0)