Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 7c81839ae77dd95dded23d703b4f7aaecbf353c4..286066a37e9ecb6febda52c4f5b6d1c37c6d8ef1 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -9143,6 +9143,10 @@ bool debug::Script::IsWasm() const { |
return Utils::OpenHandle(this)->type() == i::Script::TYPE_WASM; |
} |
+bool debug::Script::IsModule() const { |
+ return Utils::OpenHandle(this)->origin_options().IsModule(); |
+} |
+ |
namespace { |
int GetSmiValue(i::Handle<i::FixedArray> array, int index) { |
return i::Smi::cast(array->get(index))->value(); |