Index: runtime/vm/stub_code_mips_test.cc |
diff --git a/runtime/vm/stub_code_mips_test.cc b/runtime/vm/stub_code_mips_test.cc |
index c058dcd28cc72622a4629c83f5153945c1e026fd..65ff616318c6600103c8bb1caf632b9131105d40 100644 |
--- a/runtime/vm/stub_code_mips_test.cc |
+++ b/runtime/vm/stub_code_mips_test.cc |
@@ -23,10 +23,9 @@ static Function* CreateFunction(const char* name) { |
const String& class_name = String::Handle(Symbols::New(Thread::Current(), |
"ownerClass")); |
const Script& script = Script::Handle(); |
- const Class& owner_class = Class::Handle( |
- Class::New(class_name, script, TokenPosition::kNoSource)); |
const Library& lib = Library::Handle(Library::New(class_name)); |
- owner_class.set_library(lib); |
+ const Class& owner_class = Class::Handle( |
+ Class::New(lib, class_name, script, TokenPosition::kNoSource)); |
const String& function_name = String::ZoneHandle( |
Symbols::New(Thread::Current(), name)); |
Function& function = Function::ZoneHandle( |