Index: runtime/vm/stub_code_x64_test.cc |
diff --git a/runtime/vm/stub_code_x64_test.cc b/runtime/vm/stub_code_x64_test.cc |
index 8e4426eabb9c806f757c9f0caa044e42d5472020..09fb6778d0815f42f73ae8bc141b3fec9398c7f9 100644 |
--- a/runtime/vm/stub_code_x64_test.cc |
+++ b/runtime/vm/stub_code_x64_test.cc |
@@ -28,6 +28,8 @@ static Function* CreateFunction(const char* name) { |
const Script& script = Script::Handle(); |
const Class& owner_class = |
Class::Handle(Class::New(class_name, script, Scanner::kDummyTokenIndex)); |
+ const Library& lib = Library::Handle(Library::New(class_name)); |
+ owner_class.set_library(lib); |
const String& function_name = String::ZoneHandle(Symbols::New(name)); |
Function& function = Function::ZoneHandle( |
Function::New(function_name, RawFunction::kRegularFunction, |