Bug 471713 - Uncomment the sys.exit() in error() in the script to generate documentation for SpiderMonkey opcodes. r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 10 May 2014 02:10:39 +0900
changeset 205912 cef421d919f169847f1eb80828c39813ce7867ea
parent 205911 d4a005d1c687a3a79d7f8d9808433d825bbe7fc5
child 205913 bca6f69d9d7f63f879dc08945ce58dcd49625303
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs471713
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 471713 - Uncomment the sys.exit() in error() in the script to generate documentation for SpiderMonkey opcodes. r=jwalden
js/src/vm/make_opcode_doc.py
--- a/js/src/vm/make_opcode_doc.py
+++ b/js/src/vm/make_opcode_doc.py
@@ -14,17 +14,17 @@ from __future__ import print_function
 import re
 import sys
 from xml.sax.saxutils import escape
 
 SOURCE_BASE = 'http://mxr.mozilla.org/mozilla-central/source'
 
 def error(message):
     print("Error: {message}".format(message=message), file=sys.stderr)
-    #sys.exit(1) # uncomment when all opcodes documented
+    sys.exit(1)
 
 def get_xdr_version(dir):
     version_pat = re.compile('XDR_BYTECODE_VERSION = uint32_t\(0xb973c0de - (\d+)\);')
 
     version = ''
     with open('{dir}/js/src/vm/Xdr.h'.format(dir=dir), 'r') as f:
         data = f.read()