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

Unified Diff: src/inspector/injected-script-source.js

Issue 2801763002: [inspector] fixed injected-script-host crash (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | src/inspector/v8-injected-script-host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/injected-script-source.js
diff --git a/src/inspector/injected-script-source.js b/src/inspector/injected-script-source.js
index 3a3521a074cf2208316be2697d65a31adbf0da0f..de00422e2a0181553ab94a64eda21ca12a1c3da6 100644
--- a/src/inspector/injected-script-source.js
+++ b/src/inspector/injected-script-source.js
@@ -403,7 +403,9 @@ InjectedScript.prototype = {
var descriptor;
try {
descriptor = InjectedScriptHost.getOwnPropertyDescriptor(o, property);
- InjectedScriptHost.nullifyPrototype(descriptor);
+ if (descriptor) {
+ InjectedScriptHost.nullifyPrototype(descriptor);
+ }
var isAccessorProperty = descriptor && ("get" in descriptor || "set" in descriptor);
if (accessorPropertiesOnly && !isAccessorProperty)
continue;
« no previous file with comments | « no previous file | src/inspector/v8-injected-script-host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698