From 32728dac5e2a24be2af0affbfa6b54318d6a4602 Mon Sep 17 00:00:00 2001 From: Luke Bjerring Date: Wed, 25 Jul 2018 21:13:22 +0000 Subject: [PATCH] Bug 1477737 [wpt PR 12143] - [idlharness.js] Check idl_test setup func defined, a=testonly Automatic update from web-platform-tests[idlharness.js] Check idl_test setup func defined (#12143) Allows the function to be unspecified/null rather than a no-op func. -- wpt-commits: 67a2edf00ac1e65c6336d3f47638c73c339015d7 wpt-pr: 12143 --- testing/web-platform/tests/resources/idlharness.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/resources/idlharness.js b/testing/web-platform/tests/resources/idlharness.js index cc660e35a0e3..bce85c79db8e 100644 --- a/testing/web-platform/tests/resources/idlharness.js +++ b/testing/web-platform/tests/resources/idlharness.js @@ -3186,7 +3186,9 @@ function idl_test(srcs, deps, idl_setup_func, test_name) { } }) .then(function() { - return idl_setup_func(idl_array, t); + if (idl_setup_func) { + return idl_setup_func(idl_array, t); + } }) .then(function() { idl_array.test(); }) .catch(function (reason) {