Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 2e92efb37b585a03d0831a7601d856487cfb2485..93ed4192688fc12e67f95dae4fe78fd459efa6a3 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -14581,8 +14581,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; |
} |