Bug 853111 followup - Fix formatting of embedjs.py. r=me
authorShu-yu Guo <shu@rfrn.org>
Thu, 21 Mar 2013 13:29:57 -0700
changeset 132271 6609ab08172ebe9e5c10b71692fb7c0c42808653
parent 132270 c12a7b9d6ab65cc87ac4a117e46b5c46c08cdd5f
child 132272 440ee0b03c9d848ae1b1d1ecd85be360e738a9c7
push idunknown
push userunknown
push dateunknown
reviewersme
bugs853111
milestone22.0a1
Bug 853111 followup - Fix formatting of embedjs.py. r=me
js/src/builtin/embedjs.py
--- a/js/src/builtin/embedjs.py
+++ b/js/src/builtin/embedjs.py
@@ -57,27 +57,27 @@ def ToCArray(lines):
 
 HEADER_TEMPLATE = """\
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 namespace js {
 namespace selfhosted {
-	static const %(sources_type)s data[] = { %(sources_data)s };
+    static const %(sources_type)s data[] = { %(sources_data)s };
 
-	static const %(sources_type)s *%(sources_name)s = reinterpret_cast<const %(sources_type)s *>(data);
+    static const %(sources_type)s *%(sources_name)s = reinterpret_cast<const %(sources_type)s *>(data);
 
-  uint32_t GetCompressedSize() {
-    return %(compressed_total_length)i;
-  }
+    uint32_t GetCompressedSize() {
+        return %(compressed_total_length)i;
+    }
 
-  uint32_t GetRawScriptsSize() {
-    return %(raw_total_length)i;
-  }
+    uint32_t GetRawScriptsSize() {
+        return %(raw_total_length)i;
+    }
 } // selfhosted
 } // js
 """
 
 def embed(cpp, msgs, sources, c_out, js_out, env):
   # Clang seems to complain and not output anything if the extension of the
   # input is not something it recognizes, so just fake a .h here.
   tmp = 'selfhosted.js.h'