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