JavaScript™ keywords and Java™ methods

You cannot use JavaScript™ keywords in Java™ syntax even if the word is legal in Java™.

For example, delete is a JavaScript™ keyword so the following syntax is not legal:
myObject.delete(params)

In this case, the workaround is to use the property syntax to call the method:

myObject["delete"](params)