Bug 1082672, part 3 - Add some more symbol support for DOM bindings. r=bz.

--HG--
extra : rebase_source : 79b314cb464e9c77ac25bc19e91b6e13aa241aeb
This commit is contained in:
Jason Orendorff 2014-10-06 16:42:33 -05:00
parent 2950e9caff
commit c365e5fdc8
2 changed files with 3 additions and 2 deletions

View File

@ -299,7 +299,7 @@ BaseDOMProxyHandler::ownPropertyKeys(JSContext* cx,
JS::Handle<JSObject*> proxy, JS::Handle<JSObject*> proxy,
JS::AutoIdVector& props) const JS::AutoIdVector& props) const
{ {
return ownPropNames(cx, proxy, JSITER_OWNONLY | JSITER_HIDDEN, props); return ownPropNames(cx, proxy, JSITER_OWNONLY | JSITER_HIDDEN | JSITER_SYMBOLS, props);
} }
bool bool

View File

@ -80,7 +80,8 @@ public:
protected: protected:
// Hook for subclasses to implement shared ownPropertyKeys()/keys() // Hook for subclasses to implement shared ownPropertyKeys()/keys()
// functionality. The "flags" argument is either JSITER_OWNONLY (for keys()) // functionality. The "flags" argument is either JSITER_OWNONLY (for keys())
// or JSITER_OWNONLY | JSITER_HIDDEN (for ownPropertyKeys()). // or JSITER_OWNONLY | JSITER_HIDDEN | JSITER_SYMBOLS (for
// ownPropertyKeys()).
virtual bool ownPropNames(JSContext* cx, JS::Handle<JSObject*> proxy, virtual bool ownPropNames(JSContext* cx, JS::Handle<JSObject*> proxy,
unsigned flags, unsigned flags,
JS::AutoIdVector& props) const = 0; JS::AutoIdVector& props) const = 0;