Bug 5414 - 'SyntaxError: Invalid return statement' in JS console whenever Safari window activated/used
Summary: 'SyntaxError: Invalid return statement' in JS console whenever Safari window ...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 11:43 PDT by Daniel Udey
Modified: 2005-10-18 12:07 PDT (History)
0 users

See Also:


Attachments
Demonstration movie of the bug on about:blank (147.12 KB, application/octet-stream)
2005-10-18 11:55 PDT, Daniel Udey
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Udey 2005-10-18 11:43:05 PDT
In the WebKit nightly builds (both on the latest CVS nightly and the build from Oct 1), my Javascript 
console fills up with 'SyntaxError: Invalid return statement' errors pretty much instantly. Whenever I Cmd-~ 
back to the Safari window, I get a list of them, if I tab out and back I get more, if I mouse around over 
elements I get more, if I load a new page I get more, and so on.

All of the errors are reported to be on 'line 1', except the first error that is thrown after a page is loaded, 
which is on 'line 300'. This is making it somewhat difficult to debug Javascript issues.
Comment 1 Daniel Udey 2005-10-18 11:55:40 PDT
Created attachment 4403 [details]
Demonstration movie of the bug on about:blank

Here is a small video of this occurring on my system using the latest WebKit
CVS from http://nightly.webkit.org/builds/ - In the movie, I clear the
Javascript console, Cmd-~ to the main window and back, clear the console, and
Cmd-~ again.
Comment 2 Daniel Udey 2005-10-18 12:07:30 PDT
This bug is due to an incompatibility between the latest WebKit CVS builds and the WebDev Additions 
plugin for Safari. Closing and forwarding to them for consideration.