From e4bb4e95ba09bca5a974a0073dfcde524d309d1b Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Mon, 18 Oct 2010 11:38:15 -0700 Subject: [PATCH] Bug 601395 - Add tests (r=cdleary) --- js/src/trace-test/tests/basic/bug601395.js | 2 ++ js/src/trace-test/tests/basic/bug601398.js | 7 +++++++ js/src/trace-test/tests/basic/bug601401.js | 5 +++++ js/src/trace-test/tests/basic/bug601402.js | 2 ++ js/src/trace-test/tests/basic/bug601428.js | 2 ++ 5 files changed, 18 insertions(+) create mode 100644 js/src/trace-test/tests/basic/bug601395.js create mode 100644 js/src/trace-test/tests/basic/bug601398.js create mode 100644 js/src/trace-test/tests/basic/bug601401.js create mode 100644 js/src/trace-test/tests/basic/bug601402.js create mode 100644 js/src/trace-test/tests/basic/bug601428.js diff --git a/js/src/trace-test/tests/basic/bug601395.js b/js/src/trace-test/tests/basic/bug601395.js new file mode 100644 index 00000000000..046e721248d --- /dev/null +++ b/js/src/trace-test/tests/basic/bug601395.js @@ -0,0 +1,2 @@ +// |trace-test| error: SyntaxError; +let(y = let(d = []) u, x diff --git a/js/src/trace-test/tests/basic/bug601398.js b/js/src/trace-test/tests/basic/bug601398.js new file mode 100644 index 00000000000..e6276eeffc8 --- /dev/null +++ b/js/src/trace-test/tests/basic/bug601398.js @@ -0,0 +1,7 @@ +(function () { + try {} finally { + let(z) { + return; + } + } +})() diff --git a/js/src/trace-test/tests/basic/bug601401.js b/js/src/trace-test/tests/basic/bug601401.js new file mode 100644 index 00000000000..0ee7dda7dee --- /dev/null +++ b/js/src/trace-test/tests/basic/bug601401.js @@ -0,0 +1,5 @@ +let(e) { + with({}) try {} catch (x) {} finally { + let(y) {} + } +} diff --git a/js/src/trace-test/tests/basic/bug601402.js b/js/src/trace-test/tests/basic/bug601402.js new file mode 100644 index 00000000000..bf0a7989025 --- /dev/null +++ b/js/src/trace-test/tests/basic/bug601402.js @@ -0,0 +1,2 @@ +// |trace-test| error: SyntaxError; +for (let d in [(0)]) let(b = (let(e) {}), d diff --git a/js/src/trace-test/tests/basic/bug601428.js b/js/src/trace-test/tests/basic/bug601428.js new file mode 100644 index 00000000000..216fee0754d --- /dev/null +++ b/js/src/trace-test/tests/basic/bug601428.js @@ -0,0 +1,2 @@ +// |trace-test| error: SyntaxError; +let({}=[c for(x in[])]){let