Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index bcd48945f2816b95b7c542cc9477b37e99dbe40c..61f1e2dcfa5627e1cf872c911f1cef77aa315dd5 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -816,9 +816,9 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace( |
} |
if (options & StackTrace::kIsEval) { |
- int type = Smi::cast(script->compilation_type())->value(); |
- Handle<Object> is_eval = (type == Script::COMPILATION_TYPE_EVAL) ? |
- factory()->true_value() : factory()->false_value(); |
+ Handle<Object> is_eval = |
+ script->compilation_type() == Script::COMPILATION_TYPE_EVAL ? |
+ factory()->true_value() : factory()->false_value(); |
CHECK_NOT_EMPTY_HANDLE(this, |
JSObject::SetLocalPropertyIgnoreAttributes( |
stack_frame, eval_key, is_eval, NONE)); |