]> git.kaiwu.me - njs.git/commitdiff
Test262: skipping individual tests.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 6 Dec 2024 03:53:11 +0000 (19:53 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 18 Dec 2024 23:44:35 +0000 (15:44 -0800)
test/harness/runTsuite.js

index f7ec8f487db012bab0434eac2cfccb86a556ef38..5ba0ef461207671ffd17656f64f71d33e4da1277 100644 (file)
@@ -22,6 +22,10 @@ async function run(tlist) {
     function map(ts) {
         return ts.tests.map(t => {
             try {
+                if (t.skip && t.skip()) {
+                    return Promise.resolve("SKIPPED");
+                }
+
                 return ts.T(ts.prepare_args(t, ts.opts));
 
             } catch (e) {