diff --git a/src/accessors.cc b/src/accessors.cc index a43eb78b87..51db3615c3 100644 --- a/src/accessors.cc +++ b/src/accessors.cc @@ -292,7 +292,7 @@ const AccessorDescriptor Accessors::ScriptType = { MaybeObject* Accessors::ScriptGetCompilationType(Object* object, void*) { Object* script = JSValue::cast(object)->value(); - return Smi::FromInt(Script::cast(script)->compilation_type()); + return Script::cast(script)->compilation_type(); } @@ -388,7 +388,8 @@ MaybeObject* Accessors::ScriptGetEvalFromScriptPosition(Object* object, void*) { Handle