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

Unified Diff: Source/devtools/front_end/Runtime.js

Issue 607893002: DevTools: Avoid build errors when dynamic module and application names clash (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix BUILD.gn Created 6 years, 3 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/devtools/devtools.gypi ('k') | Source/devtools/scripts/concatenate_application_code.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Runtime.js
diff --git a/Source/devtools/front_end/Runtime.js b/Source/devtools/front_end/Runtime.js
index d52a3d4f4b2745a54da550da0ea609d1591637d8..af4f2d8371cc04bf6369b9c4d6a1e9d6b2728d4e 100644
--- a/Source/devtools/front_end/Runtime.js
+++ b/Source/devtools/front_end/Runtime.js
@@ -164,7 +164,7 @@ Runtime.isReleaseMode = function()
Runtime.startSharedWorker = function(moduleName, workerName)
{
if (Runtime.isReleaseMode())
- return new SharedWorker(moduleName + ".js", workerName);
+ return new SharedWorker(moduleName + "_module.js", workerName);
var content = loadResource(moduleName + "/module.json");
if (!content)
@@ -182,7 +182,7 @@ Runtime.startSharedWorker = function(moduleName, workerName)
Runtime.startWorker = function(moduleName)
{
if (Runtime.isReleaseMode())
- return new Worker(moduleName + ".js");
+ return new Worker(moduleName + "_module.js");
var content = loadResource(moduleName + "/module.json");
if (!content)
@@ -657,7 +657,7 @@ Runtime.Module.prototype = {
this._manager.loadModule(dependencies[i]);
if (this._descriptor.scripts) {
if (Runtime.isReleaseMode()) {
- loadScript(this._name + ".js");
+ loadScript(this._name + "_module.js");
} else {
var scripts = this._descriptor.scripts;
for (var i = 0; i < scripts.length; ++i)
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/scripts/concatenate_application_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698