Bug 1419781: Render a supplementary space when exporting a wasm global; r=lth
authorBenjamin Bouvier <benj@benj.me>
Wed, 06 Dec 2017 18:21:10 +0100
changeset 395482 c5fced4aa8fd5bb49c1ea78c752ccd7509b73cc6
parent 395481 f6f90940e4173b4b85b6f76b1de01b0cb29573dd
child 395483 441bb5af46ac8c5d51a620343d29ed18ccd0dc45
push id98115
push userbbouvier@mozilla.com
push dateThu, 07 Dec 2017 13:53:08 +0000
treeherdermozilla-inbound@c5fced4aa8fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs1419781
milestone59.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 1419781: Render a supplementary space when exporting a wasm global; r=lth MozReview-Commit-ID: Jr6efdRVBGE
js/src/wasm/WasmBinaryToText.cpp
--- a/js/src/wasm/WasmBinaryToText.cpp
+++ b/js/src/wasm/WasmBinaryToText.cpp
@@ -1743,17 +1743,17 @@ RenderExport(WasmRenderContext& c, AstEx
         break;
       }
       case DefinitionKind::Memory: {
         if (!c.buffer.append("memory"))
             return false;
         break;
       }
       case DefinitionKind::Global: {
-        if (!c.buffer.append("global"))
+        if (!c.buffer.append("global "))
             return false;
         if (!RenderRef(c, export_.ref()))
             return false;
         break;
       }
     }
 
     return c.buffer.append(")\n");