Skip to content

The parser should fail gracefully (unrecognized library tokens) [PATCH] #83

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


What steps will reproduce the problem?
Run this program through the debug-build of the dart VM:

­1;

main() {
}

What is the expected output? What do you see instead?
Expected output:
Errors encountered while loading script: 'scannerbug.dart': Error: line 1 pos 2: Unrecognized library token

­1;

 ^

Actual output:
/Users/olov/projects/dart/dart/runtime/vm/scanner.cc:304: error: expected: IsIdentStartChar(c0_)
zsh: abort ./xcodebuild/Debug_ia32/dart_old --enable_asserts scannerbug.dart

Please provide any additional information below.
Patch attached.


Attachment:
scanlibrarytag.patch (1.48 KB)

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.closed-duplicateClosed in favor of an existing report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions