mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:10:22 +00:00
Eliminate dynamic call of .createElement in html_dart2js.
Change-Id: I76ab0063eee4213f20483172c16f86e651536945 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256740 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Kallen Tu <kallentu@google.com> Reviewed-by: Leaf Petersen <leafp@google.com>
This commit is contained in:
parent
8e4dc26b2a
commit
e0884c91f1
|
@ -33,8 +33,7 @@
|
|||
"Dynamic invocation of 'toLowerCase'.": 1,
|
||||
"Dynamic invocation of 'attached'.": 1,
|
||||
"Dynamic invocation of 'detached'.": 1,
|
||||
"Dynamic invocation of 'attributeChanged'.": 1,
|
||||
"Dynamic invocation of 'createElement'.": 1
|
||||
"Dynamic invocation of 'attributeChanged'.": 1
|
||||
},
|
||||
"org-dartlang-sdk:///lib/html/html_common/conversions.dart": {
|
||||
"Dynamic invocation of '[]='.": 1
|
||||
|
|
|
@ -40207,7 +40207,8 @@ void _checkExtendsNativeClassOrTemplate(
|
|||
}
|
||||
}
|
||||
|
||||
Function _registerCustomElement(context, document, String tag, [Map? options]) {
|
||||
Function _registerCustomElement(context, Document document, String tag,
|
||||
[Map? options]) {
|
||||
// Function follows the same pattern as the following JavaScript code for
|
||||
// registering a custom element.
|
||||
//
|
||||
|
|
|
@ -66,7 +66,8 @@ void _checkExtendsNativeClassOrTemplate(
|
|||
}
|
||||
}
|
||||
|
||||
Function _registerCustomElement(context, document, String tag, [Map? options]) {
|
||||
Function _registerCustomElement(context, Document document, String tag,
|
||||
[Map? options]) {
|
||||
// Function follows the same pattern as the following JavaScript code for
|
||||
// registering a custom element.
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue