[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 <sigmund@google.com> Commit-Queue: Srujan Gaddam <srujzs@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
49f6a49056
commit
8690bb5653
@@ -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});
|
||||
}
|
||||
|
||||
@@ -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});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user