JScript.Net incorrect tokenization - by rbirkby

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 437860 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 5/1/2009 1:16:15 PM
Access Restriction Public


JScript.Net tokenizes regular expressions incorrectly:

var x = /=/ 

results in error JS1195: Expected expression.

This is because JScript.Net is tokenizing /= division assignment too early. 

There are 2 workarounds to this:
1) var x = /\=/
2) var x = new RegExp("=")
Sign in to post a comment.
Posted by Microsoft on 8/16/2009 at 7:47 PM
Thanks for your feedback.

Customer feedback is a critical part of a successful, impactful product release. Unfortunately another part is the reality of schedules and the need to get the bits into production. We have evaluated the issue that you reported and it does not meet the criteria to be addressed in this release. This evaluation is carefully done and considers many aspects including fix cost, breaking changes, globalization, performance, etc.

Many customers have found it useful to discuss issues like this in the forums (http://forums.microsoft.com/msdn/default.aspx?siteid=1) where Microsoft and other members of the community can suggest workarounds.

Please keep the feedbacks coming. Thanks.
Posted by Microsoft on 5/3/2009 at 9:14 PM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team