Closed Bug 513335 Opened 15 years ago Closed 8 years ago

JS_GetPropertyDescriptorById misnamed? (doesn't invoke getter, so value returned is bogus value in the slot)

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Waldo, Unassigned)

Details

I'm considering this method called on an array with the "length" property, which returns something like so (note bogus value of undefined, rather than 1 or 3 or what-have-you):

(gdb) p descriptor
$1 = {
  obj = 0x84e100, 
  attrs = 4, 
  getter = 0, 
  setter = 0, 
  value = 22
}

Brendan says Lookup would thus be a more accurate name.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.