benbria / object-spy

0 stars 0 forks source link

Wrap symbol properties #3

Open bllanos opened 9 years ago

bllanos commented 9 years ago

Current Behaviour

Only the string properties of an object are wrapped, presently, because only properties retrieved using Object.getOwnPropertyNames() in src/wrapper/wrapper.coffee are subject to wrapping.

Desired Behaviour

All properties of the object should be wrapped, including symbol properties. See MDN's reference page on Symbol for more information. Note that Symbol is part of the ECMAScript 6 proposal.