Closed Bug 743171 Opened 12 years ago Closed 12 years ago

Object.getOwnPropertyNames(this) is missing "Proxy"

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

In the shell,
  Object.getOwnPropertyNames(this)
seems to be missing Proxy.  For comparison, JSON and Math are present.
Also Audio.
A fix for this (or a solid workaround) would help my DOM fuzzer find objects to mess with and functions to call :)
Whiteboard: [fuzzblocker]
I don't understand comment 3.  For one thing, none of those are about the JS engine.

Patch coming up for Proxy.
Assignee: general → bzbarsky
Whiteboard: [fuzzblocker] → [need review][fuzzblocker]
I split off the DOM bits as bug 807222.
Whiteboard: [need review][fuzzblocker] → [need review]
Comment on attachment 676880 [details] [diff] [review]
Fix the global's enumerate hook to correctly enumerate Proxy and WeakMap.

Review of attachment 676880 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/tests/ecma_5/extensions/proxy-enumeration.js
@@ +3,5 @@
> +for (var i = 0; i < list.length; ++i) {
> +    if (list[i] == "Proxy") {
> +        found = true;
> +        break;
> +    }

You could say
  var found = list.indexOf("Proxy") != -1;
Attachment #676880 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b74aba46826f with that change.
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla19
https://hg.mozilla.org/mozilla-central/rev/b74aba46826f
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: