| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 17b904b046ebb757614c2e2b7f5e5eb5de14cf7f..2cdcc40386e8b5a37971c880464848c30acf69d7 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 {
|
|
|