Bug 1123641 - change dissrc to print result. r=jandem
authorTom Tromey <tromey@mozilla.com>
Tue, 20 Jan 2015 05:27:00 +0100
changeset 224868 e709973a9049621873e16eb3fe4659fc058c9257
parent 224867 768f1c9ea4a103b42fcd63471ec41d88fbc6668e
child 224869 52463ef12e635e06aa89bc7275d56fa2675b358f
push id28146
push usercbook@mozilla.com
push dateWed, 21 Jan 2015 13:22:59 +0000
treeherdermozilla-central@0f2b4a7a9daf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1123641
milestone38.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 1123641 - change dissrc to print result. r=jandem
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -2465,16 +2465,18 @@ DisassWithSrc(JSContext *cx, unsigned ar
             len = js_Disassemble1(cx, script, pc, script->pcToOffset(pc), true, &sprinter);
             if (!len) {
                 ok = false;
                 goto bail;
             }
             pc += len;
         }
 
+        fprintf(stdout, "%s\n", sprinter.string());
+
       bail:
         fclose(file);
     }
     args.rval().setUndefined();
     return ok;
 #undef LINE_BUF_LEN
 }