Index: src/compilation-cache.cc |
diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc |
index 5f8b41cf1fc5e49bbd49aa398a7e996caa840f58..534de9dad89585592eb74ce7f5137ff642d989ac 100644 |
--- a/src/compilation-cache.cc |
+++ b/src/compilation-cache.cc |
@@ -161,7 +161,8 @@ bool CompilationCacheScript::HasOrigin( |
// Were both scripts tagged by the embedder as being shared cross-origin? |
if (is_shared_cross_origin != script->is_shared_cross_origin()) return false; |
// Compare the two name strings for equality. |
- return String::cast(*name)->Equals(String::cast(script->name())); |
+ return String::Equals(Handle<String>::cast(name), |
+ Handle<String>(String::cast(script->name()))); |
} |