Bug 525340 [Gtk][Webkit2] Javascript evaluate fails with "SyntaxError:
Return statements are only valid inside functions" 

(Backport to 4.7.2)

Wrapping evaluate logic into a function to deal with corner case where
'return' is not at the beginnign of the script. Tested with all Browser
jUnit tests.

Change-Id: Ieeffd891db64cf4c719ee097ea9939fd8352c2d9
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
1 file changed
tree: 24d7556a1f192ced4c8c90cf84531fe6910cf3f4
  1. .gitignore
  2. README.md
  3. bundles/
  4. examples/
  5. features/
  6. local-build/
  7. pom.xml
  8. tests/

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).


Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!