Skip to content

Commit

Permalink
add note about possible Symbol polyfill problems with environment e…
Browse files Browse the repository at this point in the history
…xotic objects, close #163
  • Loading branch information
zloirock committed Jan 24, 2016
1 parent b24fe20 commit 50fefa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ o2[s2] = true;
for(var key in o2)console.log(key); // nothing
```
* Currently, `core-js` not adds setters to `Object.prototype` for well-known symbols for correct work something like `Symbol.iterator in foo`. It can cause problems with their enumerability.
* Some problems possible with environment exotic objects (for example, IE `localStorage`).

#### ECMAScript 6: Collections
`core-js` uses native collections in most case, just fixes methods / constructor, if it's required, and in old environment uses fast polyfill (O(1) lookup).
Expand Down

1 comment on commit 50fefa0

@zloirock
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Feel free add a PR.

Please sign in to comment.