This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90616 - Syntax error reported for a syntactically correct JavaScript code
Summary: Syntax error reported for a syntactically correct JavaScript code
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-05 19:54 UTC by Jan Chalupa
Modified: 2009-02-27 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Chalupa 2006-12-05 19:54:12 UTC
JavaScript parser doesn't seem to like the '.' operator in the following HTML
page with embedded JavaScript.

-------------------------%<---------------------------
<html>
<head>
<title>Test</title>
<script type="text/javascript">
    var something = "";
    var x = new RegExp(something, "").exec(0);
</script>
</html>
-------------------------%<---------------------------
Comment 1 Jan Chalupa 2006-12-05 19:57:42 UTC
Forgot to mention: dev build from 2006-11-30, lang infrastructure and JavaScript
support installed from NBM.
Comment 2 Jan Jancura 2006-12-06 16:27:39 UTC
Fixed:
grammar update

/cvs/scripting/javascript/src/org/netbeans/modules/languages/javascript/JavaScript.nbs,v
 <--  JavaScript.nbs
new revision: 1.7; previous revision: 1.6
Comment 3 Jan Chalupa 2006-12-10 14:32:41 UTC
Seems fixed. Works fine in the 2006-12-08 build.