<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Import tests from TC39 tests262"
   href="https://bugs.webkit.org/show_bug.cgi?id=144241">144241</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Import tests from TC39 tests262
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rniwa&#64;webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>benjamin&#64;webkit.org, darin&#64;apple.com, fpizlo&#64;apple.com, ggaren&#64;apple.com, mark.lam&#64;apple.com, msaboff&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We should import tests from <a href="https://github.com/tc39/test262">https://github.com/tc39/test262</a>

Their tests for class syntax, for example, caught a few bugs as well as crashes!
I've been using their python script to run tests as follows:
./tools/packaging/test262.py --command=&quot;/Volumes/Data/webkit/Tools/Scripts/run-jsc --no-show-dyld&quot;

after applying the following change to run-jsc:

Index: Tools/Scripts/run-jsc
===================================================================
--- Tools/Scripts/run-jsc    (revision 183315)
+++ Tools/Scripts/run-jsc    (working copy)
&#64;&#64; -39,17 +39,23 &#64;&#64;
 my $usage = &quot;Usage: run-jsc [--count run_count] shell_file [file2...]&quot;;

 my $count = 1;
-GetOptions(&quot;count|c=i&quot; =&gt; \$count);
+my $noShowDyld = 0;
+GetOptions((&quot;count|c=i&quot; =&gt; \$count, &quot;no-show-dyld&quot; =&gt; \$noShowDyld));

 my $jsc = jscProductDir() . &quot;/jsc &#64;ARGV&quot;;

 my $dyld = jscProductDir();

 $ENV{&quot;DYLD_FRAMEWORK_PATH&quot;} = $dyld;
-print STDERR &quot;Running $count time(s): DYLD_FRAMEWORK_PATH=$dyld $jsc\n&quot;;
+
+if (!$noShowDyld) {
+    print STDERR &quot;Running $count time(s): DYLD_FRAMEWORK_PATH=$dyld $jsc\n&quot;;
+}
+
 while ($count--) {
-    if (system(&quot;$jsc&quot;) != 0) {
-        last;
+    my $exit_code = system(&quot;$jsc&quot;);
+    if ($exit_code != 0) {
+        exit($exit_code &gt;&gt; 8);
     }
 }</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>