Skip to content

StringBuffer patch fails with VM strong mode #31737

@lexaknyazev

Description

@lexaknyazev

Apparently, this happens on loading script source.

Dart VM version: 2.0.0-dev.14.0 (Wed Dec 20 10:43:00 2017 +0100) on "windows_x64"

Unhandled exception:
type 'List' is not a subtype of type 'List<String>' of '_parts@0150898' where
  List is from dart:core
  List is from dart:core
  String is from dart:core

#0      StringBuffer._parts= (dart:core-patch/dart:core/string_buffer_patch.dart:17)
#1      StringBuffer._addPart (dart:core-patch/dart:core/string_buffer_patch.dart:163)
#2      StringBuffer.write (dart:core-patch/dart:core/string_buffer_patch.dart:67)
#3      new StringBuffer (dart:core-patch/dart:core/string_buffer_patch.dart:56)
#4      ListIterable.join (dart:_internal/iterable.dart:152)
#5      _Uri._makePath (dart:core/uri.dart:2100)
#6      new _Uri (dart:core/uri.dart:1497)
#7      _Uri._makeWindowsFileUrl (dart:core/uri.dart:1761)
#8      new _Uri.directory (dart:core/uri.dart:1670)
#9      _setWorkingDirectory (dart:_builtin:145)

CL: https://dart-review.googlesource.com/c/sdk/+/31900

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions