Index: runtime/vm/object_test.cc |
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc |
index aa75ee9feb125813453efabb7898a861229fccea..a7e36972891ca6a81a70ba6ce0ee6a5b1fd2139d 100644 |
--- a/runtime/vm/object_test.cc |
+++ b/runtime/vm/object_test.cc |
@@ -162,15 +162,16 @@ VM_TEST_CASE(TypeArguments) { |
VM_TEST_CASE(TokenStream) { |
- String& source = String::Handle(String::New("= ( 9 , .")); |
- String& private_key = String::Handle(String::New("")); |
+ Zone* zone = Thread::Current()->zone(); |
+ String& source = String::Handle(zone, String::New("= ( 9 , .")); |
+ String& private_key = String::Handle(zone, String::New("")); |
Scanner scanner(source, private_key); |
const Scanner::GrowableTokenStream& ts = scanner.GetStream(); |
EXPECT_EQ(6, ts.length()); |
EXPECT_EQ(Token::kLPAREN, ts[1].kind); |
const TokenStream& token_stream = TokenStream::Handle( |
- TokenStream::New(ts, private_key, false)); |
- TokenStream::Iterator iterator(token_stream, TokenPosition::kMinSource); |
+ zone, TokenStream::New(ts, private_key, false)); |
+ TokenStream::Iterator iterator(zone, token_stream, TokenPosition::kMinSource); |
// EXPECT_EQ(6, token_stream.Length()); |
iterator.Advance(); // Advance to '(' token. |
EXPECT_EQ(Token::kLPAREN, iterator.CurrentTokenKind()); |