Browse Source

bug testcase for Array.prototype.slice() end handling

pull/1/head
Sami Vaarala 12 years ago
parent
commit
e751ea5c8a
  1. 14
      testcases/test-dev-bug-array-slice-end.js

14
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);
}
Loading…
Cancel
Save