From e751ea5c8af870da2871374a133613148fdc6353 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Thu, 23 May 2013 20:41:43 +0300 Subject: [PATCH] bug testcase for Array.prototype.slice() end handling --- testcases/test-dev-bug-array-slice-end.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testcases/test-dev-bug-array-slice-end.js diff --git a/testcases/test-dev-bug-array-slice-end.js b/testcases/test-dev-bug-array-slice-end.js new file mode 100644 index 00000000..de85de1f --- /dev/null +++ b/testcases/test-dev-bug-array-slice-end.js @@ -0,0 +1,14 @@ +/*=== +3,4,5 +3,4,5 +===*/ + +/* Broken at some point: end would not default to 'length' */ + +try { + print([1,2,3,4,5].slice(2)); + print([1,2,3,4,5].slice(2, 5)); +} catch (e) { + print(e); +} +