Index: runtime/vm/parser_test.cc |
diff --git a/runtime/vm/parser_test.cc b/runtime/vm/parser_test.cc |
index fe9230871903c676ec1c529057394661e572575e..120e5cace0c231717441ed07ec749e35699eb20c 100644 |
--- a/runtime/vm/parser_test.cc |
+++ b/runtime/vm/parser_test.cc |
@@ -21,7 +21,8 @@ DECLARE_FLAG(bool, show_invisible_frames); |
static void DumpFunction(const Library& lib, |
const char* cname, |
const char* fname) { |
- const String& classname = String::Handle(Symbols::New(cname)); |
+ const String& classname = String::Handle(Symbols::New(Thread::Current(), |
+ cname)); |
String& funcname = String::Handle(String::New(fname)); |
bool retval; |
@@ -56,7 +57,8 @@ void CheckField(const Library& lib, |
const char* field_name, |
bool expect_static, |
bool is_final) { |
- const String& classname = String::Handle(Symbols::New(class_name)); |
+ const String& classname = String::Handle(Symbols::New(Thread::Current(), |
+ class_name)); |
Class& cls = Class::Handle(lib.LookupClass(classname)); |
EXPECT(!cls.IsNull()); |
@@ -91,7 +93,8 @@ void CheckFunction(const Library& lib, |
const char* class_name, |
const char* function_name, |
bool expect_static) { |
- const String& classname = String::Handle(Symbols::New(class_name)); |
+ const String& classname = String::Handle(Symbols::New(Thread::Current(), |
+ class_name)); |
Class& cls = Class::Handle(lib.LookupClass(classname)); |
EXPECT(!cls.IsNull()); |