[ddc] Update warning message with dwds version
Change-Id: I26b5393256506f4ca1773baea15e71bee4b54683 Issue: https://github.com/dart-lang/sdk/issues/48103 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226964 Reviewed-by: Anna Gringauze <annagrin@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
committed by
Commit Bot
parent
eacd2b3e3e
commit
e44af61dd1
@@ -15,7 +15,7 @@ var _issuedPostEventWarning = false;
|
||||
var _issuedRegisterExtensionWarning = false;
|
||||
final _developerSupportWarning = 'from dart:developer is only supported in '
|
||||
'build/run/test environments where the developer event method hooks have '
|
||||
'been set.';
|
||||
'been set by package:dwds v11.1.0 or higher.';
|
||||
|
||||
/// Returns `true` if the debugger service has been attached to the app.
|
||||
// TODO(46377) Update this check when we have a documented API for DDC apps.
|
||||
@@ -85,8 +85,7 @@ _registerExtension(String method, ServiceExtensionHandler handler) {
|
||||
JS('', r'#.$emitRegisterEvent(#)', dart.global_, method);
|
||||
return;
|
||||
}
|
||||
// TODO(nshahan) Remove use of debug log after package:dwds removes support.
|
||||
// https://github.com/dart-lang/webdev/issues/1342
|
||||
// TODO(48103) Remove use of debug log in Dart 3.0.0.
|
||||
JS('', 'console.debug("dart.developer.registerExtension", #)', method);
|
||||
}
|
||||
|
||||
@@ -134,8 +133,7 @@ void _postEvent(String eventKind, String eventData) {
|
||||
JS('', r'#.$emitDebugEvent(#, #)', dart.global_, eventKind, eventData);
|
||||
return;
|
||||
}
|
||||
// TODO(nshahan) Remove use of debug log after package:dwds removes support.
|
||||
// https://github.com/dart-lang/webdev/issues/1342
|
||||
// TODO(48103) Remove use of debug log in Dart 3.0.0.
|
||||
JS('', 'console.debug("dart.developer.postEvent", #, #)', eventKind,
|
||||
eventData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user