diff --git a/tools/js2c.py b/tools/js2c.py index 788b2e74d24..e1d617dd274 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()