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
aaa9cead
Unverified
Commit
aaa9cead
authored
Mar 11, 2023
by
sigmundch
Committed by
GitHub
Mar 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tool][web] Pass invoker flag to dart2js. (#122344)
[tool][web] Pass invoker flag to dart2js.
parent
ee2fd4b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
web.dart
packages/flutter_tools/lib/src/build_system/targets/web.dart
+1
-0
web_test.dart
...ols/test/general.shard/build_system/targets/web_test.dart
+23
-0
flutter_build_with_compilation_error_test.dart
...tion.shard/flutter_build_with_compilation_error_test.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/build_system/targets/web.dart
View file @
aaa9cead
...
...
@@ -211,6 +211,7 @@ class Dart2JSTarget extends Dart2WebTarget {
artifacts
.
getArtifactPath
(
Artifact
.
dart2jsSnapshot
,
platform:
TargetPlatform
.
web_javascript
),
'--platform-binaries=
$platformBinariesPath
'
,
...
decodeCommaSeparated
(
environment
.
defines
,
kExtraFrontEndOptions
),
'--invoker=flutter_tool'
,
if
(
nativeNullAssertions
)
'--native-null-assertions'
,
if
(
buildMode
==
BuildMode
.
profile
)
...
...
packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart
View file @
aaa9cead
...
...
@@ -335,6 +335,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -348,6 +349,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-O4'
,
...
...
@@ -373,6 +375,7 @@ void main() {
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--enable-experiment=non-nullable'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -387,6 +390,7 @@ void main() {
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--enable-experiment=non-nullable'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-O4'
,
...
...
@@ -408,6 +412,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -421,6 +426,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-O4'
,
...
...
@@ -442,6 +448,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -455,6 +462,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
'-O4'
,
...
...
@@ -476,6 +484,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'--native-null-assertions'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
...
...
@@ -490,6 +499,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'--native-null-assertions'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
...
...
@@ -512,6 +522,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -525,6 +536,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
'-O3'
,
...
...
@@ -545,6 +557,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -576,6 +589,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'-DFOO=bar'
,
'-DBAZ=qux'
,
...
...
@@ -591,6 +605,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'-DFOO=bar'
,
'-DBAZ=qux'
,
...
...
@@ -614,6 +629,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'-o'
,
environment
.
buildDir
.
childFile
(
'app.dill'
).
absolute
.
path
,
...
...
@@ -626,6 +642,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.product=true'
,
'-O4'
,
'-o'
,
...
...
@@ -647,6 +664,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'-DFOO=bar'
,
'-DBAZ=qux'
,
...
...
@@ -662,6 +680,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'-DFOO=bar'
,
'-DBAZ=qux'
,
...
...
@@ -686,6 +705,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -699,6 +719,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-O4'
,
...
...
@@ -722,6 +743,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-o'
,
...
...
@@ -735,6 +757,7 @@ void main() {
command:
<
String
>[
...
kDart2jsLinuxArgs
,
'--platform-binaries=bin/cache/flutter_web_sdk/kernel'
,
'--invoker=flutter_tool'
,
'-Ddart.vm.profile=true'
,
'--no-source-maps'
,
'-O4'
,
...
...
packages/flutter_tools/test/integration.shard/flutter_build_with_compilation_error_test.dart
View file @
aaa9cead
...
...
@@ -67,6 +67,7 @@ int x = 'String';
result
.
stderr
,
contains
(
"A value of type 'String' can't be assigned to a variable of type 'int'."
),
);
expect
(
result
.
stderr
,
isNot
(
contains
(
"Warning: The 'dart2js' entrypoint script is deprecated"
)));
expect
(
result
.
exitCode
,
1
);
});
}
...
...
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