This fixes three issues from the dart2js+dart2wasm PR:
Since YamlMap is not a Map<String, dynamic>, .cast() doesn't work. Tests didn't catch this because we weren't reading from yaml.
The loader script had multiple issues - it referenced an undefined function and assumes that WebAssembly is defined. Tests didn't catch this because this was only exercised in the fallback path, and we were only testing on Chrome. I've fixed the loader script and added a custom browser platform that disables WebAssembly in Chrome to make sure the fallback path is working.
We've stopped emitting dart2js archives because we expected them to look like main.dart.js*. When using a custom build extension for dart2js, they are actually named main.dart2js.js* - I've fixed that, this is tested by the deferred imports hello world test in _test.
This fixes three issues from the dart2js+dart2wasm PR:
YamlMap
is not aMap<String, dynamic>
,.cast()
doesn't work. Tests didn't catch this because we weren't reading from yaml.WebAssembly
is defined. Tests didn't catch this because this was only exercised in the fallback path, and we were only testing on Chrome. I've fixed the loader script and added a custom browser platform that disables WebAssembly in Chrome to make sure the fallback path is working.main.dart.js*
. When using a custom build extension for dart2js, they are actually namedmain.dart2js.js*
- I've fixed that, this is tested by the deferred imports hello world test in_test
.Sorry for the mess!
Closes https://github.com/dart-lang/build/issues/3746. Closes https://github.com/dart-lang/build/issues/3747.