Closed
Bug 78024
Opened 23 years ago
Closed 14 years ago
unhelpful "deprecated getter usage" warning
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jruderman, Unassigned)
Details
Attachments
(1 file)
462 bytes,
text/html
|
Details |
When I load this testcase, I get a "deprecated getter usage" warning on the javascript console, but no indication of what the correct syntax is. The message should say what the correct syntax is or give a URL explaining what the correct syntax is. I tried looking at Mozilla's source code to figure out what was generating the message, but instead of finding the string "deprecated getter usage", all I found was http://lxr.mozilla.org/seamonkey/source/js/src/js.msg#233 : MSG_DEF(JSMSG_DEPRECATED_USAGE, 158, 1, JSEXN_REFERENCEERR, "deprecated {0} usage").
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
This is a core jsengine issue. Reassigning. Can anyone point out a document explaining the supported syntax?
Assignee: jband → rogerl
Component: JavaScript Debugger → Javascript Engine
QA Contact: rginda → pschwartau
Comment 3•23 years ago
|
||
cc'ing Brendan, Patrick, Rob for their opinions on this - and in case they know any specific doc or URL that explains this issue correctly.
OS: Windows 98 → All
Reporter | ||
Comment 4•23 years ago
|
||
I found a way to define a getter in Mozilla without producing a warning by searching Google for "HTMLElement.prototype". produces a warning: HTMLElement.prototype.ih getter = function (str) { return "*" + this.innerHTML + "*"; } doesn't produce a warning: HTMLElement.prototype.__defineGetter__("ih", function () { return "*" + this.innerHTML + "*"; } ) Are either of these methods standard, or are they both specific to Mozilla?
Comment 5•23 years ago
|
||
http://www.mozilla.org/js/js15.html has pointers, but the google (originally, deja) links are dangling, sort of. Rob, endico: do we have more such on the www.mozilla.org site? I think the thread discussing this getter/setter change is now at http://groups.google.com/groups?hl=en&lr=&safe=off&th=ddf42c2092335418&ic=1 /be
Updated•19 years ago
|
Assignee: rogerl → general
QA Contact: pschwartau → general
Comment 6•14 years ago
|
||
Support for the "x getter = function() {}" syntax was removed in bug 517580, so let's close this.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•