summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1863390.js
blob: f414fceb7ca9f5d258b9799e881e0016db5b7626 (plain)
1
2
3
4
5
6
var left = "left-rope-child";
var right = newString("right-rope-child", {twoByte: true});
var rope = newRope(left, right);
var result = rope.substring(0, left.length + 1);

assertEq(result, "left-rope-childr");