Skip to content

Commit 509e103

Browse files
parloughCommit Queue
authored andcommitted
[dart2js] Fix minor typos in dart compile js help
Also drop the outdated doc for the unused '--allow-mock-compilation'. Change-Id: I25de278cd6c2a398f5f407fa98c7aa08ab5a137d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/424321 Reviewed-by: Mayank Patke <[email protected]> Commit-Queue: Mayank Patke <[email protected]> Reviewed-by: Nate Biggs <[email protected]>
1 parent 85227c4 commit 509e103

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/compiler/lib/src/dart2js.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ Usage: dart compile js [arguments] <dart entry point>
10521052
-O1 Default (includes whole program analyses and inlining).
10531053
-O2 Safe production-oriented optimizations (like minification).
10541054
-O3 Potentially unsafe optimizations (see -h -v for details).
1055-
-O4 More agressive unsafe optimizations (see -h -v for details).
1055+
-O4 More aggressive unsafe optimizations (see -h -v for details).
10561056
'''.trim(),
10571057
);
10581058
}
@@ -1109,7 +1109,7 @@ Usage: dart compile js [arguments] <dart entry point>
11091109
11101110
--csp
11111111
Disable dynamic generation of code in the generated output. This is
1112-
necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).
1112+
necessary to satisfy CSP restrictions (see https://www.w3.org/TR/CSP/).
11131113
11141114
--no-source-maps
11151115
Do not generate a source map file.
@@ -1216,10 +1216,6 @@ be removed in a future version:
12161216
--libraries-spec=<file>
12171217
A .json file containing the SDK libraries specification.
12181218
1219-
--allow-mock-compilation
1220-
Do not generate a call to main if either of the following
1221-
libraries are used: dart:dom, dart:html dart:io.
1222-
12231219
--disable-native-live-type-analysis
12241220
Disable the optimization that removes unused native types from dart:html
12251221
and related libraries.
@@ -1247,7 +1243,7 @@ be removed in a future version:
12471243
exit code to determine if compilation failed.
12481244
12491245
--no-frequency-based-minification
1250-
Experimental. Disabled the new frequency based minifying namer and use the
1246+
Experimental. Disable the new frequency based minifying namer and use the
12511247
old namer instead.
12521248
'''.trim(),
12531249
);

0 commit comments

Comments
 (0)