haikuwebkit/LayoutTests/js/dom/regexp-unicode-overflow-exp...

14 lines
588 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This test checks for a regression against REGRESSION: Apparent WebKit JavaScript memory smasher when submitting comment to iWeb site (crashes in kjs_pcre_compile2). If it fails, it may crash.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS new RegExp("[k ]", "i").toString() is /[k ]/i.toString()
PASS new RegExp("[k]", "i").toString() is /[k]/i.toString()
PASS new RegExp("[k“]", "i").toString() is /[k“]/i.toString()
PASS new RegExp("[k”]", "i").toString() is /[k”]/i.toString()
PASS successfullyParsed is true
TEST COMPLETE