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

Unified Diff: tools/js2c.py

Issue 1130253006: Fix build after revert at 28332. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/js2c.py
diff --git a/tools/js2c.py b/tools/js2c.py
index 788b2e74d24729cdfa5782dae2a03fd50b705896..e1d617dd274900757cbe4e2c0dcd3cc135f4e58d 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -431,7 +431,7 @@ def PrepareSources(source_files, native_type, emit_js):
# It cannot be empty (or whitespace, which gets trimmed to empty), as
# the deserialization code assumes each file is nonempty.
if not source_files_and_contents:
- source_files_and_contents = [("dummy.js", "void 0;")]
+ source_files_and_contents = [("dummy.js", "(function() {})")]
result = Sources()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698