Index: runtime/vm/snapshot_test.cc |
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc |
index 52db51257cca557e224b209dce150080b8a2ab97..0beeed09a3b71030e98ede140943dcd35385aee0 100644 |
--- a/runtime/vm/snapshot_test.cc |
+++ b/runtime/vm/snapshot_test.cc |
@@ -869,9 +869,8 @@ static void GenerateSourceAndCheck(const Script& script) { |
const String& str = String::Handle(zone, expected_tokens.GenerateSource()); |
const String& private_key = |
String::Handle(zone, expected_tokens.PrivateKey()); |
- Scanner scanner(str, private_key); |
const TokenStream& reconstructed_tokens = |
- TokenStream::Handle(zone, TokenStream::New(scanner.GetStream(), |
+ TokenStream::Handle(zone, TokenStream::New(str, |
private_key, |
false)); |
expected_iterator.SetCurrentPosition(TokenPosition::kMinSource); |