Fix build after revert at 28332.
authoryangguo <yangguo@chromium.org>
Mon, 11 May 2015 08:50:38 +0000 (01:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 08:50:38 +0000 (08:50 +0000)
TBR=machenbach@chromium.org
NOTRY=true
NOTREECHECKS=true

Review URL: https://codereview.chromium.org/1130253006

Cr-Commit-Position: refs/heads/master@{#28333}

tools/js2c.py

index 788b2e7..e1d617d 100755 (executable)
@@ -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()