Bug 1341412 - Baldr: fix rebase fail (r=bustage)
authorLuke Wagner <luke@mozilla.com>
Thu, 23 Feb 2017 18:14:04 -0600
changeset 373683 49abbdfdd1ab01a71ee588a171102aefb85baf30
parent 373682 3fee518242f68ba6a1b2b107bd475645ecf24622
child 373684 c1e74895212a5eecbe1d1e643c8e36a80852bc40
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1341412
milestone54.0a1
Bug 1341412 - Baldr: fix rebase fail (r=bustage) MozReview-Commit-ID: Kydw7jaZiQ7
js/src/wasm/WasmValidate.cpp
--- a/js/src/wasm/WasmValidate.cpp
+++ b/js/src/wasm/WasmValidate.cpp
@@ -613,18 +613,18 @@ DecodePreamble(Decoder& d)
     if (d.bytesRemain() > MaxModuleBytes)
         return d.fail("module too big");
 
     uint32_t u32;
     if (!d.readFixedU32(&u32) || u32 != MagicNumber)
         return d.fail("failed to match magic number");
 
     if (!d.readFixedU32(&u32) || u32 != EncodingVersion) {
-        return d.fail("binary version 0x%" PRIx32 " does not match expected version 0x%" PRIx32,
-                      u32, EncodingVersion);
+        return d.failf("binary version 0x%" PRIx32 " does not match expected version 0x%" PRIx32,
+                       u32, EncodingVersion);
     }
 
     return true;
 }
 
 static bool
 DecodeTypeSection(Decoder& d, ModuleEnvironment* env)
 {