1
0
mirror of https://github.com/robertkrimen/otto synced 2025-09-28 18:45:22 +08:00

Bypass a little bit more of the gauntlet (for now)

This commit is contained in:
Robert Krimen 2012-10-20 23:52:34 -07:00
parent 68943ba1e4
commit 820c21423f
2 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,9 @@ rm -f ch07/7.6/7.6.1/7.6.1-8-8.js
rm -f ch07/7.6/7.6.1/7.6.1-8-9.js
# Skip, no backreferencing in re2
rm -f ch07/7.8/7.8.5/S7.8.5_A1.4_T1.js
rm -f ch07/7.8/7.8.5/S7.8.5_A2.4_T1.js
# We WANT to squawk on \1, \2, \3, ..., \9
# TODO Come up with replacement test?
rm -f ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js
rm -f ch07/7.8/7.8.5/S7.8.5_A2.4_T2.js
popd

View File

@ -1567,7 +1567,10 @@ func TestRegExp(t *testing.T) {
test(`/\u0041/.source`, "\\u0041")
test(`/\a/.source`, "\\a")
test(`/\;/.source`, "\\;")
test(`/\ /.source`, "\\ ")
test(`/a\a/.source`, "a\\a")
test(`/,\;/.source`, ",\\;")
test(`/ \ /.source`, " \\ ")
// Start sanity check...
test("eval(\"/abc/\").source", "abc")