diff --git a/js/src/tests/e4x/Regress/regress-319872.js b/js/src/tests/e4x/Regress/regress-319872.js index c196c91da081..cce5428a30dc 100644 --- a/js/src/tests/e4x/Regress/regress-319872.js +++ b/js/src/tests/e4x/Regress/regress-319872.js @@ -41,7 +41,7 @@ gTestfile = 'regress-319872.js'; var BUGNUMBER = 319872; var summary = 'Do not Crash in jsxml.c'; var actual = 'No Crash'; -var expect = 'No Crash'; +var expect = /(No Crash|InternalError: script stack space quota is exhausted|InternalError: allocation size overflow)/; printBugNumber(BUGNUMBER); START(summary); @@ -71,8 +71,7 @@ try } catch(ex) { - expect = 'InternalError: script stack space quota is exhausted'; actual = ex + ''; print(actual); } -TEST(1, expect, actual); +reportMatch(expect, actual, summary);