<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:utatane.tea&#64;gmail.com" title="Yusuke Suzuki &lt;utatane.tea&#64;gmail.com&gt;"> <span class="fn">Yusuke Suzuki</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] JSC test wasm.yaml/wasm/js-api/test_basic_api.js.default-wasm and wasm.yaml/wasm/js-api/test_Module.js.default-wasm fail with Exception: ReferenceError: Can't find variable: WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=163846">bug 163846</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>utatane.tea&#64;gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] JSC test wasm.yaml/wasm/js-api/test_basic_api.js.default-wasm and wasm.yaml/wasm/js-api/test_Module.js.default-wasm fail with Exception: ReferenceError: Can't find variable: WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=163846#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] JSC test wasm.yaml/wasm/js-api/test_basic_api.js.default-wasm and wasm.yaml/wasm/js-api/test_Module.js.default-wasm fail with Exception: ReferenceError: Can't find variable: WebAssembly"
   href="https://bugs.webkit.org/show_bug.cgi?id=163846">bug 163846</a>
              from <span class="vcard"><a class="email" href="mailto:utatane.tea&#64;gmail.com" title="Yusuke Suzuki &lt;utatane.tea&#64;gmail.com&gt;"> <span class="fn">Yusuke Suzuki</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=163846#c5">comment #5</a>)
<span class="quote">&gt; &gt; &gt; Are the conditions at the top wrong for GTK?
&gt; &gt; 
&gt; &gt; They look sane to me.
&gt; 
&gt; Hmm, I don't think they are:
&gt; 
&gt; $isFTLPlatform = !($architecture == &quot;x86&quot; || $architecture == &quot;arm&quot; ||
&gt; $hostOS == &quot;windows&quot; || $hostOS == &quot;linux&quot; &amp;&amp; $architecture == &quot;arm64&quot;)
&gt; 
&gt; We'd need a way to see if the platform built with ENABLE(WEBASSEMBLY). I'm
&gt; not sure how this is done.
&gt; 
&gt; &gt; Me either! I think we need to figure out how it is that WebAssembly works at
&gt; &gt; all on the Mac port, then decide if it's ready to be turned on for other
&gt; &gt; ports or not. If it's not ready yet, then we should find a way to skip the
&gt; &gt; test conditional on whether or not it's enabled. 
&gt; 
&gt; It's not ready yet, and we're only concentrating on Mac bits right now so
&gt; some of the code will need Linux-isms to work well on Linux. I wouldn't
&gt; enable it yet, unless someone is willing to do the Linux work.
&gt; 
&gt; 
&gt; &gt; Alternatively, we could modify the test to pass whenever the WebAssembly
&gt; &gt; variable is not defined, and assume that we would notice if such a major
&gt; &gt; feature accidentally disappeared.
&gt; 
&gt; I'd rather not since the entire point is to test that WebAssembly works.
&gt; It's unlikely that we'd mess that up, but still it's not released so nobody
&gt; would notice.</span >

It seems that ENABLE(WEBASSEMBLY) is ON in Mac ports by default, right?
I think adding the following &quot;darwin&quot; check in runWebAssembly is preferable.

if $hostOS == &quot;darwin&quot;

WEBASSEMBLY flag can be enabled even if it is still under the development, and actually it seems that it is enabled in Mac ports.
Why we can do that safely is there is runtime flag Options::useWebAssembly(). It prevents us from exposing the implementation under the heavy development.

Basically, we can enable WEBASSEMBLY flag.
The reason why we would like to disable this in Linux port is we have a part only focusing on Darwin right now.
So, the reasonable choice is disabling the tests based on the $hostOS.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>