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 151366 - "missing ; before statement" error happens
Summary: "missing ; before statement" error happens
Status: RESOLVED DUPLICATE of bug 154179
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 15:20 UTC by Masaki Katakai
Modified: 2009-02-27 14:26 UTC (History)
1 user (show)

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 Masaki Katakai 2008-10-25 15:20:04 UTC
Hi,

Could you evaluate this error?

Product Version: NetBeans IDE 6.5 RC2 internal build
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.22-15-generic running on i386; ANSI_X3.4-1968; en_US (nb)

1. Create a new JavaScript file
2. Paste the following code into editor

$('input[type=checkbox]').change(function(event) {
  var elem = $(event.target).pparent().get(0);
});

  No error.

3. Delete a "p" of "pparent()" in the 2nd line, change to "parent()".

  "missing ; before statement" error happens

4. Save the file, close the file
5. Open the file again

  Now no error happens.
Comment 1 Torbjorn Norbye 2008-12-10 15:46:43 UTC
This is a duplicate of issue 154179 which I recently fixed in 7.0 (and I have marked it as a 65fixes2-candidate to hopefully get it fixed in the next patch 
release of 6.5 as well).

*** This issue has been marked as a duplicate of 154179 ***