Delete is a reserved word in Ecmascript. Besides renaming your method to
something other than delete you could also execute it using the square
bracket format

On Apr 16, 2010 3:00 PM, "Daryl Stultz" <[email protected]> wrote:

On Fri, Apr 16, 2010 at 1:45 PM, Sarah Fatima <[email protected]>wrote:


> On sending the hotmail script through Rhino engine I found that it
> does not completely parse th...
I don't have any real help for you, but I'm reminded that the same error is
thrown (IIRC) on this:

myobject.delete()

I worked around it by renaming the function/method to remove(). Seems odd to
me that it chokes on this, but I don't know the ECMA spec much at all.

--
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]

_______________________________________________
dev-tech-js-engine-rhino mailing list
dev-tech-js-en...
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to