Index: runtime/vm/class_finalizer_test.cc |
diff --git a/runtime/vm/class_finalizer_test.cc b/runtime/vm/class_finalizer_test.cc |
index f1c492e25b702369c7dc89d6a530d335c61f0ba2..eb4447cc690fb9dde957378384793ded49d69755 100644 |
--- a/runtime/vm/class_finalizer_test.cc |
+++ b/runtime/vm/class_finalizer_test.cc |
@@ -11,7 +11,8 @@ namespace dart { |
static RawClass* CreateTestClass(const char* name) { |
- const String& class_name = String::Handle(Symbols::New(name)); |
+ const String& class_name = String::Handle(Symbols::New(Thread::Current(), |
+ name)); |
const Script& script = Script::Handle(); |
const Class& cls = Class::Handle( |
Class::New(class_name, script, TokenPosition::kNoSource)); |
@@ -74,7 +75,7 @@ TEST_CASE(ClassFinalize_Cycles) { |
static RawLibrary* NewLib(const char* url_chars) { |
- String& url = String::ZoneHandle(Symbols::New(url_chars)); |
+ String& url = String::ZoneHandle(Symbols::New(Thread::Current(), url_chars)); |
return Library::New(url); |
} |