From 8690bb5653eb2d2b0a5bc8f1e7cf775c541eafbf Mon Sep 17 00:00:00 2001 From: Srujan Gaddam Date: Tue, 7 Apr 2020 18:44:06 +0000 Subject: [PATCH] [dart:html] Change late finals to external getters Late final fields in the JS classes in js_typed_interop tests are changed to external getters instead. Change-Id: I5ed17e18b5fc59bd7267ac5f8ebda649c6fb21e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142722 Reviewed-by: Sigmund Cherem Commit-Queue: Srujan Gaddam --- tests/lib/html/js_typed_interop_type2_test.dart | 4 ++-- tests/lib/html/js_typed_interop_type3_test.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lib/html/js_typed_interop_type2_test.dart b/tests/lib/html/js_typed_interop_type2_test.dart index fd3ebfdbcd3..cb4681f1db1 100644 --- a/tests/lib/html/js_typed_interop_type2_test.dart +++ b/tests/lib/html/js_typed_interop_type2_test.dart @@ -12,7 +12,7 @@ import 'package:expect/expect.dart'; @JS() @anonymous class C { - late final foo; + external get foo; external factory C({required foo}); } @@ -20,7 +20,7 @@ class C { @JS() @anonymous class D { - late final foo; + external get foo; external factory D({required foo}); } diff --git a/tests/lib/html/js_typed_interop_type3_test.dart b/tests/lib/html/js_typed_interop_type3_test.dart index 5e0ff0f55b5..d764182bb81 100644 --- a/tests/lib/html/js_typed_interop_type3_test.dart +++ b/tests/lib/html/js_typed_interop_type3_test.dart @@ -19,7 +19,7 @@ class A { @JS() @anonymous class C { - late final foo; + external get foo; external factory C({required foo}); } @@ -27,7 +27,7 @@ class C { @JS() @anonymous class D { - late final foo; + external get foo; external factory D({required foo}); }