Skip to content

Commit

Permalink
support enabling experiments when using the dart2wasm compiler (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 committed Apr 3, 2024
1 parent ce3c8ca commit b1a34a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/test_core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Handle missing package configs.
* Document the silent reporter in CLI help output.
* Support enabling experiments with the dart2wasm compiler.

## 0.6.0

Expand Down
3 changes: 3 additions & 0 deletions pkgs/test_core/lib/src/runner/wasm_compiler_pool.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'dart:io';

import 'package:path/path.dart' as p;

import '../util/dart.dart';
import '../util/io.dart';
import '../util/package_config.dart';
import 'compiler_pool.dart';
Expand Down Expand Up @@ -44,6 +45,8 @@ class WasmCompilerPool extends CompilerPool {
'--dart-sdk=$sdkRoot',
'--platform=$platformDill',
'--packages=${(await packageConfigUri).path}',
for (var experiment in enabledExperiments)
'--enable-experiment=$experiment',
wrapperPath,
outWasmPath,
]);
Expand Down

0 comments on commit b1a34a9

Please sign in to comment.