Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/web_ui/lib/src/engine/dom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ extension DomWindowExtension on DomWindow {
/// The Trusted Types API (when available).
/// See: https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API
external DomTrustedTypePolicyFactory? get trustedTypes;

// ignore: non_constant_identifier_names
external DomIntl get Intl;
}

typedef DomRequestAnimationFrameCallback = void Function(num highResTime);
Expand All @@ -83,6 +80,9 @@ extension DomConsoleExtension on DomConsole {
@JS('window')
external DomWindow get domWindow;

@JS('Intl')
external DomIntl get domIntl;

@JS()
@staticInterop
class DomNavigator {}
Expand Down Expand Up @@ -1815,7 +1815,7 @@ extension DomV8BreakIteratorExtension on DomV8BreakIterator {
}

DomV8BreakIterator createV8BreakIterator() {
final Object? v8BreakIterator = domWindow.Intl.v8BreakIterator;
final Object? v8BreakIterator = domIntl.v8BreakIterator;
if (v8BreakIterator == null) {
throw UnimplementedError('v8BreakIterator is not supported.');
}
Expand Down