Closed Bug 36948 Opened 25 years ago Closed 24 years ago

redeclaration of document.URL using __defineGetter__

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 44013

People

(Reporter: norrisboyd, Assigned: rogerl)

Details

(Keywords: js1.5)

Subject: BUG: redeclaration of document.URL using __defineGetter__ Date: Fri, 21 Apr 2000 17:14:08 +0300 From: Georgi Guninski <joro@nat.bg> To: Norris Boyd <norris@netscape.com> It is possible to redeclare document.URL using __defineGetter__ (it is impossible with normal getter). The code is: ----------------------------------------------------- <HTML> <SCRIPT> // document.URL getter = function() { return "http://www.yahoo.com"} // This gives the error "redeclaration of const. URL" document.__defineGetter__("URL",function() {return "http://www.yahoo.com"} ); alert("document.URL="+document.URL); </SCRIPT> </HTML> -----------------------------------------------------
D'oh -- JS2 syntax does not include getter=, wherefore __defineGetter__, which I forgot about completely. That needs to call OBJ_CHECK_ACCESS(... JSACC_WATCH..) too, a la the interpreter JSOP_GETTER:JSOP_SETTER: case. /be
Bulk reassigning most of norris's bugs to mstoltz.
Assignee: norris → mstoltz
engine issue...
Assignee: mstoltz → rogerl
Component: Security: General → Javascript Engine
QA Contact: junruh → pschwartau
Keywords: js1.5
I believe I fixed this already. Someone please verify. /be
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Dup of bug 44013. /be
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
*** This bug has been marked as a duplicate of 44013 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.