Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index c63a93885d631614cfa6c19058663f480b6693dc..611f432108bdfd3a2ba671e380a30c2e21458719 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14594,8 +14594,7 @@ RUNTIME_FUNCTION(Runtime_TryMigrateInstance) { |
// code where we can't handle lazy deopts for lack of a suitable bailout |
// ID. So we just try migration and signal failure if necessary, |
// which will also trigger a deopt. |
- Handle<Object> result = JSObject::TryMigrateInstance(js_object); |
- if (result.is_null()) return Smi::FromInt(0); |
+ if (!JSObject::TryMigrateInstance(js_object)) return Smi::FromInt(0); |
return *object; |
} |