Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index ccd6f280dc0ae0415e0598555b8fddc5f2bb6ad8..89bd399bd0681a20444dc93272c8bd71ef16bfbd 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)); |