Skip to content

Error in ImmutableList.toString #547

Closed
@dgrove

Description

@dgrove

at r1707:

$ cat x.dart
final z = const<String> ['a', 'b'];

main() {
  print(z);
}

dgrove-macbookpro:frog dgrove$ ./frogsh x.dart

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Array.prototype.toString is not generic
    at ImmutableList.toString (native)
    at print (evalmachine.<anonymous>:12:24)
    at main (evalmachine.<anonymous>:70:3)
    at evalmachine.<anonymous>:78:1
    at main (/Users/dgrove/repo/dart-bleeding/dart/frog/frogsh:22662:10)
    at Object.<anonymous> (/Users/dgrove/repo/dart-bleeding/dart/frog/frogsh:22990:1)
    at Module._compile (module.js:411:26)
    at Object..js (module.js:417:10)
    at Module.load (module.js:343:31)
    at Function._load (module.js:302:12)

dgrove-macbookpro:frog dgrove$ ../xcodebuild/Release_ia32/dart x.dart
ImmutableArray

Metadata

Metadata

Assignees

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