Skip to content

Instantly share code, notes, and snippets.

@mattmazzola
Created June 27, 2015 17:43
Show Gist options
  • Save mattmazzola/abae3e7ed16309b5cea0 to your computer and use it in GitHub Desktop.
Save mattmazzola/abae3e7ed16309b5cea0 to your computer and use it in GitHub Desktop.
Questions about 'metaprogramming-in-es6-symbols' article

On the section about Symbols not being truly private:

assert.deepEqual(Object.getOwnPropertySymbols(x), [Symbol(size)]); I was expecting: assert.deepEqual(Object.getOwnPropertySymbols(x), [size]);

Is it required to call Symbol(size) to have proper comparison even though size is already an instace of Symbol?

On the section about Symbol.match:

return [find]; I was expecting: return [this.value];

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment