diff --git a/.test262/cull b/.test262/cull index ad99b68..64285a5 100755 --- a/.test262/cull +++ b/.test262/cull @@ -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 diff --git a/otto_test.go b/otto_test.go index 560a8e9..a499458 100644 --- a/otto_test.go +++ b/otto_test.go @@ -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")