| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 86e9935a9f4d3f3ea985e1a25b2859875a4ed18c..b311a35eef597a8ec4d56473b3e8eadbd4be9e0c 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8972,14 +8972,12 @@ MaybeLocal<String> debug::Script::SourceMappingURL() const {
|
| handle_scope.CloseAndEscape(i::Handle<i::String>::cast(value)));
|
| }
|
|
|
| -MaybeLocal<String> debug::Script::ContextData() const {
|
| +MaybeLocal<Value> debug::Script::ContextData() const {
|
| i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
| i::HandleScope handle_scope(isolate);
|
| i::Handle<i::Script> script = Utils::OpenHandle(this);
|
| i::Handle<i::Object> value(script->context_data(), isolate);
|
| - if (!value->IsString()) return MaybeLocal<String>();
|
| - return Utils::ToLocal(
|
| - handle_scope.CloseAndEscape(i::Handle<i::String>::cast(value)));
|
| + return Utils::ToLocal(handle_scope.CloseAndEscape(value));
|
| }
|
|
|
| MaybeLocal<String> debug::Script::Source() const {
|
|
|