From e65c65c293c2f7cf8b775704aa26579989ea1514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Thu, 21 Dec 2017 12:08:09 -0800 Subject: Remove unused return value from testWithIntlConstructors --- harness/testIntl.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'harness') diff --git a/harness/testIntl.js b/harness/testIntl.js index 5311939bc..4fd4f4348 100644 --- a/harness/testIntl.js +++ b/harness/testIntl.js @@ -14,25 +14,21 @@ author: Norbert Lindenberg /** * @description Calls the provided function for every service constructor in - * the Intl object, until f returns a falsy value. It returns the result of the - * last call to f, mapped to a boolean. + * the Intl object. * @param {Function} f the function to call for each service constructor in * the Intl object. * @param {Function} Constructor the constructor object to test with. - * @result {Boolean} whether the test succeeded. */ function testWithIntlConstructors(f) { var constructors = ["Collator", "NumberFormat", "DateTimeFormat"]; - return constructors.every(function (constructor) { + constructors.forEach(function (constructor) { var Constructor = Intl[constructor]; - var result; try { - result = f(Constructor); + f(Constructor); } catch (e) { e.message += " (Testing with " + constructor + ".)"; throw e; } - return result; }); } -- cgit v1.2.1