(str, regex)
| 28 | // Flags: --allow-natives-syntax |
| 29 | |
| 30 | function testEscape(str, regex) { |
| 31 | assertEquals("foo:bar:baz", str.split(regex).join(":")); |
| 32 | } |
| 33 | |
| 34 | testEscape("foo\nbar\nbaz", /\n/); |
| 35 | testEscape("foo bar baz", /\s/); |
no test coverage detected
searching dependent graphs…