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

Unified Diff: src/inspector/v8-injected-script-host.cc

Issue 2772093002: [inspector] exposed builtins for injected script source (Closed)
Patch Set: removed unused variable Created 3 years, 9 months 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
« no previous file with comments | « src/inspector/injected_script_externs.js ('k') | test/inspector/protocol-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-injected-script-host.cc
diff --git a/src/inspector/v8-injected-script-host.cc b/src/inspector/v8-injected-script-host.cc
index 02af51eb1205f2bb47dbe3e5185384f1c5ac6a35..35a52f6265f96145058b34faf8b5d08a802da4ff 100644
--- a/src/inspector/v8-injected-script-host.cc
+++ b/src/inspector/v8-injected-script-host.cc
@@ -80,6 +80,26 @@ v8::Local<v8::Object> V8InjectedScriptHost::create(
setFunctionProperty(context, injectedScriptHost, "proxyTargetValue",
V8InjectedScriptHost::proxyTargetValueCallback,
debuggerExternal);
+ createDataProperty(context, injectedScriptHost,
+ toV8StringInternalized(isolate, "keys"),
+ v8::debug::GetBuiltin(isolate, v8::debug::kObjectKeys));
+ createDataProperty(
+ context, injectedScriptHost,
+ toV8StringInternalized(isolate, "getPrototypeOf"),
+ v8::debug::GetBuiltin(isolate, v8::debug::kObjectGetPrototypeOf));
+ createDataProperty(
+ context, injectedScriptHost,
+ toV8StringInternalized(isolate, "getOwnPropertyDescriptor"),
+ v8::debug::GetBuiltin(isolate,
+ v8::debug::kObjectGetOwnPropertyDescriptor));
+ createDataProperty(
+ context, injectedScriptHost,
+ toV8StringInternalized(isolate, "getOwnPropertyNames"),
+ v8::debug::GetBuiltin(isolate, v8::debug::kObjectGetOwnPropertyNames));
+ createDataProperty(
+ context, injectedScriptHost,
+ toV8StringInternalized(isolate, "getOwnPropertySymbols"),
+ v8::debug::GetBuiltin(isolate, v8::debug::kObjectGetOwnPropertySymbols));
return injectedScriptHost;
}
« no previous file with comments | « src/inspector/injected_script_externs.js ('k') | test/inspector/protocol-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698