java.io.File.delete() conflicts with JS delete operator

VERIFIED INVALID

Status

P3
normal
VERIFIED INVALID
18 years ago
18 years ago

People

(Reporter: jlaprise, Assigned: norrisboyd)

Tracking

Details

(Reporter)

Description

18 years ago
For example,

var x = new java.io.File( "filename" );
x.delete();

produces the following exception

missing name after . operator
(Assignee)

Comment 1

18 years ago
Yes, I'm afraid the only way around this is to use [] syntax:

x["delete"]();

The current behavior is correct on Rhino's part.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → INVALID

Comment 2

18 years ago
Mozilla handles it correctly, marking as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.