es-shims / get-own-property-symbols

ES6 Object.getOwnPropertySymbols partial polyfill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not all required methods wrapped for correct work

zloirock opened this issue · comments

var o = {};
var s = Symbol();
o[s] = {value: 42};

Object.getOwnPropertyDescriptor(o, s).enumerable; // => false, should be true

Object.create({}, o)[s]; // => undefined, should be 42

yep, I'm on it

so, 0.4.0 should have solved both problems. Tested at the bottom of this list