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

Unified Diff: Source/bindings/core/v8/PrivateScriptRunner.js

Issue 454773002: Blink-in-JS: Support private scripts in partial interfaces (PrivateScriptRunner part) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
Index: Source/bindings/core/v8/PrivateScriptRunner.js
diff --git a/Source/bindings/core/v8/PrivateScriptRunner.js b/Source/bindings/core/v8/PrivateScriptRunner.js
index 0baab26b2ba49017ea9b8f826d860d8373e6c17c..75c7e9bd2d6bf32d9435f2996207e23496ae7ba1 100644
--- a/Source/bindings/core/v8/PrivateScriptRunner.js
+++ b/Source/bindings/core/v8/PrivateScriptRunner.js
@@ -82,7 +82,8 @@ function privateScriptClass()
function installClass(className, implementation)
{
- installedClasses[className] = new privateScriptClass();
+ if (installedClasses[className] === undefined)
Jens Widell 2014/08/11 12:27:57 "!(className in installedClasses)" would be a more
haraken 2014/08/11 12:41:40 Done.
+ installedClasses[className] = new privateScriptClass();
implementation(window, installedClasses[className]);
}

Powered by Google App Engine
This is Rietveld 408576698