Index: tools/js2c.py |
diff --git a/tools/js2c.py b/tools/js2c.py |
index ff8e2dc4c71f4e9746eea3548791c9eca262542d..c2805373796f0c58f88cd2c63a2e25a6ab97637f 100755 |
--- a/tools/js2c.py |
+++ b/tools/js2c.py |
@@ -377,7 +377,7 @@ class Sources: |
def IsDebuggerFile(filename): |
- return filename.endswith("-debugger.js") |
+ return "debug" in filename |
def IsMacroFile(filename): |
return filename.endswith("macros.py") |
@@ -447,7 +447,7 @@ def PrepareSources(source_files, native_type, emit_js): |
result.is_debugger_id.append(is_debugger) |
name = os.path.basename(source)[:-3] |
- result.names.append(name if not is_debugger else name[:-9]) |
+ result.names.append(name) |
return result |