1 This test verifies that implicit creation of a regular expression eagerly checks for syntax errors.
3 If the test passes, you'll see pass messages below.
5 PASS: "abc".search("[") should throw an exception and did: SyntaxError: Invalid regular expression: /[/: Unterminated character class.
6 PASS: "abc".match("[") should throw an exception and did: SyntaxError: Invalid regular expression: /[/: Unterminated character class.