[js] Flip strict mode flag for Dart2Wasm.

Change-Id: I1847e60d2db86dabeda78839895e1acacbe3ffc5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290348
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
This commit is contained in:
Joshua Litt 2023-03-23 16:18:20 +00:00 committed by Commit Queue
parent 31d32b2e24
commit 0d6a1acd75

View file

@ -114,7 +114,7 @@ class WasmTarget extends Target {
diagnosticReporter as DiagnosticReporter<Message, LocatedMessage>, diagnosticReporter as DiagnosticReporter<Message, LocatedMessage>,
_nativeClasses!, _nativeClasses!,
enableDisallowedExternalCheck: false, enableDisallowedExternalCheck: false,
enableStrictMode: false); enableStrictMode: true);
// Process and validate first before doing anything with exports. // Process and validate first before doing anything with exports.
for (Library library in interopDependentLibraries) { for (Library library in interopDependentLibraries) {
jsInteropChecks.visitLibrary(library); jsInteropChecks.visitLibrary(library);