nikhilk / scriptsharp

Script# Project - a C# to JavaScript compiler, to power your HTML5 and Node.js web development.

Home Page:http://scriptsharp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Substring issue

toly-k opened this issue · comments

commented

C# Substring method takes start index + length (http://msdn.microsoft.com/en-us/library/aka44szs%28v=vs.110%29.aspx)
It gets translated to JS substring method that takes start index + end index (http://www.w3schools.com/jsref/jsref_substring.asp)

Instead shouldn't it be translated to substr method(http://www.w3schools.com/jsref/jsref_substr.asp)? It takes same parameters as C#.