blob: e369e23a6731a4ed13b99e7709e01fef180eeeff [file] [log] [blame]
This page tests handling of malformed escape sequences.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Testing regexp: /\ug/gm
PASS regexp.test('ug') is true
PASS regexp.lastIndex is 2
Testing regexp: /\xg/gm
PASS regexp.test('xg') is true
PASS regexp.lastIndex is 2
Testing regexp: /\c_/gm
PASS regexp.test('\\c_') is true
PASS regexp.lastIndex is 3
Testing regexp: /[\B]/gm
PASS regexp.test('B') is true
PASS regexp.lastIndex is 1
Testing regexp: /[\b]/gm
PASS regexp.test('\b') is true
PASS regexp.lastIndex is 1
Testing regexp: /\8/gm
PASS regexp.test('\\8') is true
PASS regexp.lastIndex is 2
Testing regexp: /^[\c]$/
PASS regexp.test('c') is true
Testing regexp: /^[\c_]$/
PASS regexp.test('c') is false
Testing regexp: /^[\c]]$/
PASS regexp.test('c]') is true
PASS successfullyParsed is true
TEST COMPLETE