WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
29629
REGRESSION(
r48336
): JSC API objects aren't iterated properly
https://bugs.webkit.org/show_bug.cgi?id=29629
Summary
REGRESSION(r48336): JSC API objects aren't iterated properly
Marshall Culpepper
Reported
2009-09-22 00:25:06 PDT
We've implemented a C-based Javascript class with a callback for the getPropertyNames function. Normally, this function is called anytime one of our objects is iterated via a for/in loop, i.e: "for (property in object) {..}". Currently, it seems that the getPropertyNames callback is ignored completely, causing new properties set on the object to not show up the above loop iteration. Reverting the patch from
bug #29170
seems to fix the issue, though I'm not sure which part of the patch is relevant
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2009-09-22 02:09:20 PDT
<
rdar://problem/7242278
>
Mark Rowe (bdash)
Comment 2
2009-09-22 14:32:50 PDT
A small test case that demonstrates the problem would make this trivial to confirm and investigate.
Oliver Hunt
Comment 3
2009-09-30 14:42:06 PDT
Sigh, still no test case :-/
Marshall Culpepper
Comment 4
2009-09-30 14:44:40 PDT
Hey Oliver I attempted make a test case for this in testapi.js, but haven't been able to replicate it yet using the "MyObject" code. Once I get a free moment I'll try and nail it down so we can have a good starting point :)
Mark Rowe (bdash)
Comment 5
2009-11-30 14:23:09 PST
We’re unable to reproduce this. If you can provide a test case that demonstrates the issue please feel free to reopen this bug report.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug