nikhilk / scriptsharp

Script# Project - a C# to JavaScript compiler, to power your HTML5 and Node.js web development.
http://scriptsharp.com
Other
658 stars 182 forks source link

Substring issue #412

Open toly-k opened 10 years ago

toly-k commented 10 years ago

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#.