Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: src/api.cc

Issue 2502173002: [inspector] removed embbeder debugger script flag (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 6c677abee3e678323b1287d2af84c188850e437d..f51b2b3eec3f6e79e28b2aeb224f889207e915f2 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -263,7 +263,6 @@ static ScriptOrigin GetScriptOriginForScript(i::Isolate* isolate,
v8::Integer::New(v8_isolate, script->column_offset()),
v8::Boolean::New(v8_isolate, options.IsSharedCrossOrigin()),
v8::Integer::New(v8_isolate, script->id()),
- v8::Boolean::New(v8_isolate, options.IsEmbedderDebugScript()),
Utils::ToLocal(source_map_url),
v8::Boolean::New(v8_isolate, options.IsOpaque()));
return origin;
@@ -9036,6 +9035,14 @@ bool DebugInterface::Script::GetPossibleBreakpoints(
return true;
}
+bool DebugInterface::Script::IsInspectorScript() const {
+ i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
+ i::HandleScope handle_scope(isolate);
+ i::Handle<i::Script> script = Utils::OpenHandle(this);
+ i::Script::Type type = static_cast<i::Script::Type>(script->type());
+ return type == i::Script::TYPE_INSPECTOR;
+}
+
int DebugInterface::Script::GetSourcePosition(const Location& location) const {
i::Handle<i::Script> script = Utils::OpenHandle(this);
« no previous file with comments | « src/accessors.cc ('k') | src/bootstrapper.cc » ('j') | src/inspector/v8-debugger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698