diff options
Diffstat (limited to 'deps/v8/src/objects/script-inl.h')
-rw-r--r-- | deps/v8/src/objects/script-inl.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/objects/script-inl.h b/deps/v8/src/objects/script-inl.h index 33c794e4a5..07450c73ec 100644 --- a/deps/v8/src/objects/script-inl.h +++ b/deps/v8/src/objects/script-inl.h @@ -47,11 +47,11 @@ ACCESSORS_CHECKED(Script, wasm_module_object, Object, this->type() == TYPE_WASM) bool Script::is_wrapped() const { - return eval_from_shared_or_wrapped_arguments()->IsFixedArray(); + return eval_from_shared_or_wrapped_arguments().IsFixedArray(); } bool Script::has_eval_from_shared() const { - return eval_from_shared_or_wrapped_arguments()->IsSharedFunctionInfo(); + return eval_from_shared_or_wrapped_arguments().IsSharedFunctionInfo(); } void Script::set_eval_from_shared(SharedFunctionInfo shared, @@ -104,13 +104,13 @@ void Script::set_origin_options(ScriptOriginOptions origin_options) { bool Script::HasValidSource() { Object src = this->source(); - if (!src->IsString()) return true; + if (!src.IsString()) return true; String src_str = String::cast(src); if (!StringShape(src_str).IsExternal()) return true; - if (src_str->IsOneByteRepresentation()) { - return ExternalOneByteString::cast(src)->resource() != nullptr; - } else if (src_str->IsTwoByteRepresentation()) { - return ExternalTwoByteString::cast(src)->resource() != nullptr; + if (src_str.IsOneByteRepresentation()) { + return ExternalOneByteString::cast(src).resource() != nullptr; + } else if (src_str.IsTwoByteRepresentation()) { + return ExternalTwoByteString::cast(src).resource() != nullptr; } return true; } |