From e62c71814527bf1b310e39935398ac6b68428af7 Mon Sep 17 00:00:00 2001 From: David Iglesias Date: Mon, 11 Mar 2024 16:21:17 -0700 Subject: [PATCH] [web] Split initialization of the _flutter namespace and loader object. (flutter/engine#51294) This makes it possible to more flexibly compose `{{flutter_js}}` and `{{flutter_build_options}}` in @eyebrowsoffire's [bootstrapping improvements PR](https://github.com/flutter/flutter/pull/144434). [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/lib/web_ui/dev/test_platform.dart | 10 +++++++++- .../src/flutter/lib/web_ui/flutter_js/src/flutter.js | 8 +++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/dev/test_platform.dart b/engine/src/flutter/lib/web_ui/dev/test_platform.dart index 9c34e0c6c6..aa6d53c595 100644 --- a/engine/src/flutter/lib/web_ui/dev/test_platform.dart +++ b/engine/src/flutter/lib/web_ui/dev/test_platform.dart @@ -554,13 +554,21 @@ class BrowserPlatform extends PlatformPlugin { (CompileConfiguration config) => _makeBuildConfigString(scriptBase, config) ).join(',\n'); final String bootstrapScript = ''' - + + +