Index: runtime/vm/snapshot_test.cc |
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc |
index ef7a10cfcc4ba283caffac486b9d9600604f0408..da0e827cb25892b872dbdc5f69df188c265bf8eb 100644 |
--- a/runtime/vm/snapshot_test.cc |
+++ b/runtime/vm/snapshot_test.cc |
@@ -944,7 +944,7 @@ TEST_CASE(SerializeScript) { |
RawScript::kScriptTag)); |
const String& lib_url = String::Handle(Symbols::New(thread, "TestLib")); |
Library& lib = Library::Handle(Library::New(lib_url)); |
- lib.Register(); |
+ lib.Register(thread); |
EXPECT(CompilerTest::TestCompileScript(lib, script)); |
// Write snapshot with script content. |