Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 7950ad814db5502f90c015005eb0d80d01f0d324..0e7b22d035741c962ba6cbaecfe45ed1421ad055 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -151,10 +151,9 @@ CallSite::CallSite(Isolate* isolate, Handle<JSObject> call_site_obj) |
fun_ = Handle<JSFunction>::cast(maybe_function); |
receiver_ = JSObject::GetDataProperty( |
call_site_obj, isolate->factory()->call_site_receiver_symbol()); |
- pos_ = Handle<Smi>::cast(JSObject::GetDataProperty( |
- call_site_obj, |
- isolate->factory()->call_site_position_symbol())) |
- ->value(); |
+ CHECK(JSObject::GetDataProperty( |
+ call_site_obj, isolate->factory()->call_site_position_symbol()) |
+ ->ToInt32(&pos_)); |
} |