| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 02cfe3b18cd4f4f6ee0f66ed24209adacaad3458..de5447de2aef5b419f0ca55d89955fbadb47fe36 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -9497,6 +9497,15 @@ int debug::WasmScript::NumImportedFunctions() const {
|
| return static_cast<int>(compiled_module->module()->num_imported_functions);
|
| }
|
|
|
| +Maybe<int> debug::WasmScript::ContextId() const {
|
| + i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
| + i::HandleScope handle_scope(isolate);
|
| + i::Handle<i::Script> script = Utils::OpenHandle(this);
|
| + i::Object* value = script->context_data();
|
| + if (value->IsSmi()) return Just(i::Smi::cast(value)->value());
|
| + return Nothing<int>();
|
| +}
|
| +
|
| std::pair<int, int> debug::WasmScript::GetFunctionRange(
|
| int function_index) const {
|
| i::DisallowHeapAllocation no_gc;
|
|
|