diff --git a/pkg/dev_compiler/test/dynamic/platform_allowed.json b/pkg/dev_compiler/test/dynamic/platform_allowed.json index 1a051c68bab..a6efd91d279 100644 --- a/pkg/dev_compiler/test/dynamic/platform_allowed.json +++ b/pkg/dev_compiler/test/dynamic/platform_allowed.json @@ -1,8 +1,4 @@ { - "sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/debugger.dart": { - "Dynamic access of 'last'.": 1, - "Dynamic invocation of 'split'.": 1 - }, "sdk/lib/_internal/js_dev_runtime/private/debugger.dart": { "Dynamic invocation of 'toJsonML'.": 1, "Dynamic update to 'style'.": 3, diff --git a/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/debugger.dart b/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/debugger.dart index af7bb12c55a..9f5e90919f4 100644 --- a/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/debugger.dart +++ b/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/debugger.dart @@ -514,7 +514,7 @@ bool _isDartClassObject(@notNull Object object) => @notNull String _dartClassName(@notNull Object cls) { - var recipe = _get(cls, rti.interfaceTypeRecipePropertyName); + String recipe = _get(cls, rti.interfaceTypeRecipePropertyName); return recipe.split('|').last; }