on master help sign in
RTS: use substr rather than slice
commit2d5197b2dc1a2dff2ce9709c265f391a0254f0e3 authorbe5invis <belleve@typeof.net> dateThu 25 May 2017, 15:04 (9 years ago) parent4f002e5
1 file changed+1−1
jsrts/Runtime-common.js+1−1
jsrts/Runtime-common.js+1−1
@@ -17,6 +17,6 @@ const $JSRTS = {
1717 }
1818 },
1919 prim_strSubstr: function (offset, len, str) {
20− return str.slice(Math.max(0, offset), Math.max(0, len))
20+ return str.substr(Math.max(0, offset), Math.max(0, len))
2121 }
2222};