On Dec 12, 11:32 pm, [email protected] wrote: > I think I am running into a problem with the reserved word "delete". > When I run this script: > > new java.io.File( "C:/temp/junk" ).delete(); > > I receive the following exception. > > javax.script.ScriptException: > sun.org.mozilla.javascript.internal.EvaluatorException: missing name > after . operator (<Unknown source>#1) in <Unknown source> at line > number 1 > > Is there some way to escape the reserved word so that this will work?
It looks awkward, but you can do this: new java.io.File( "C:/temp/junk" )["delete"](); Hannes _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
