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);