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

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
« no previous file with comments | « Source/bindings/core/v8/PrivateScriptRunner.cpp ('k') | Source/build/scripts/make_private_script_source.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..88b9bed2f82cd428c1828486d87aedf4fbf51950 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 (!(className in installedClasses))
+ installedClasses[className] = new privateScriptClass();
implementation(window, installedClasses[className]);
}
« no previous file with comments | « Source/bindings/core/v8/PrivateScriptRunner.cpp ('k') | Source/build/scripts/make_private_script_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698