changeset 24720 | 75f8388b79df |
parent 17763 | f30b7aa0e736 |
child 24778 | 2ff5d7041566 |
--- a/nashorn/test/script/basic/NASHORN-377.js Wed Feb 26 13:17:57 2014 +0100 +++ b/nashorn/test/script/basic/NASHORN-377.js Mon Mar 03 11:24:44 2014 +0100 @@ -194,7 +194,7 @@ })(); (function test_slice() { - var b = ArrayBuffer(16); + var b = new ArrayBuffer(16); fillArray(new Int8Array(b)); print(bufstr(b)); print("slice(4,8)=" + bufstr(b.slice(4, 8)), "slice(-8,-4)=" + bufstr(b.slice(-8, -4))); // negative index refers from the end of the array