From 0d6a1acd758e584668abc5390c25905bfe436fa8 Mon Sep 17 00:00:00 2001 From: Joshua Litt Date: Thu, 23 Mar 2023 16:18:20 +0000 Subject: [PATCH] [js] Flip strict mode flag for Dart2Wasm. Change-Id: I1847e60d2db86dabeda78839895e1acacbe3ffc5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290348 Commit-Queue: Joshua Litt Reviewed-by: Srujan Gaddam --- pkg/dart2wasm/lib/target.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dart2wasm/lib/target.dart b/pkg/dart2wasm/lib/target.dart index 14e84bb17da..a003300c27f 100644 --- a/pkg/dart2wasm/lib/target.dart +++ b/pkg/dart2wasm/lib/target.dart @@ -114,7 +114,7 @@ class WasmTarget extends Target { diagnosticReporter as DiagnosticReporter, _nativeClasses!, enableDisallowedExternalCheck: false, - enableStrictMode: false); + enableStrictMode: true); // Process and validate first before doing anything with exports. for (Library library in interopDependentLibraries) { jsInteropChecks.visitLibrary(library);