Skip to content

Commit

Permalink
Revert "Return an empty JavaScript object as a replacement for export…
Browse files Browse the repository at this point in the history
…s/module in patchCanvasKitModule (flutter#40582)" (flutter#40686)

This reverts commit d468552.
  • Loading branch information
bdero authored Mar 27, 2023
1 parent 4bc9341 commit 9c0d1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/web_ui/lib/src/engine/canvaskit/canvaskit_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,7 @@ void patchCanvasKitModule(DomHTMLScriptElement canvasKitScript) {
final Object? exportsAccessor = js_util.jsify(<String, dynamic>{
'get': allowInterop(() {
if (domDocument.currentScript == canvasKitScript) {
return js_util.callConstructor(objectConstructor, null);
return objectConstructor;
} else {
return _flutterWebCachedExports;
}
Expand All @@ -2677,7 +2677,7 @@ void patchCanvasKitModule(DomHTMLScriptElement canvasKitScript) {
final Object? moduleAccessor = js_util.jsify(<String, dynamic>{
'get': allowInterop(() {
if (domDocument.currentScript == canvasKitScript) {
return js_util.callConstructor(objectConstructor, null);
return objectConstructor;
} else {
return _flutterWebCachedModule;
}
Expand Down

0 comments on commit 9c0d1db

Please sign in to comment.