From ca820b5e0beccc35343aabce1b3fecd3f6fd55db Mon Sep 17 00:00:00 2001 From: Jeff Walden Date: Fri, 2 Feb 2018 23:59:24 -0800 Subject: [PATCH] Bug 1434429 - Another followup test-fix. r=red --- js/src/tests/non262/regress/regress-352208.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/tests/non262/regress/regress-352208.js b/js/src/tests/non262/regress/regress-352208.js index 6dfd6eeac926..667c48f07817 100644 --- a/js/src/tests/non262/regress/regress-352208.js +++ b/js/src/tests/non262/regress/regress-352208.js @@ -19,14 +19,14 @@ function test() printBugNumber(BUGNUMBER); printStatus (summary); - expect = 'SyntaxError: unterminated string literal'; + expect = 'SyntaxError'; try { eval('new Function("setter/*\n");'); } catch(ex) { - actual = ex + ''; + actual = ex.constructor.name; } reportCompare(expect, actual, 'new Function("setter/*\n");'); @@ -36,7 +36,7 @@ function test() } catch(ex) { - actual = ex + ''; + actual = ex.constructor.name; } reportCompare(expect, actual, 'new Function("setter/*\n*/");'); }