Closed Bug 298811 Opened 20 years ago Closed 19 years ago

The word 'TreeSelection' cannot be used as a JavaScript identifier using the function operator.

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: michaelk, Assigned: mikepinkerton)

References

()

Details

In Camino, the following JavaScript declaration fails:

fails: function TreeSelection() { }


Camino prints a JS error 'JavaScript Error: "uncaught exception [...]' to system
log and drops the declaration. The identifier works if you use the anonymous
function syntax:

works: TreeSelection = function() { }


The problem seems to be Camino-specific: FF (win/mac) works fine. The bug may be
minor, as this identifier won't be used very often, but there might be other
Camino-internal identifiers polluting the JavaScript namespace.
sounds like you're trying to reuse something already in XUL and camino handles
it differently...
Summary: The word 'TreeSelection' cannot be used as a JavaScript identifier using the function operator. → The word 'TreeSelection' cannot be used as a JavaScript identifier using the function operator.
Works now (I guess because we picked up a .xpt file for about:config, bug 209070).
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.