Skip to content

Commit

Permalink
Allow coreJS Symbol to be type object (#9756)
Browse files Browse the repository at this point in the history
  • Loading branch information
conartist6 authored and nicolo-ribaudo committed Mar 24, 2019
1 parent a559397 commit ff04d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-helpers/src/helpers.js
Expand Up @@ -80,7 +80,7 @@ helpers.jsx = helper("7.0.0-beta.0")`
helpers.asyncIterator = helper("7.0.0-beta.0")`
export default function _asyncIterator(iterable) {
var method
if (typeof Symbol === "function") {
if (typeof Symbol !== "undefined") {
if (Symbol.asyncIterator) {
method = iterable[Symbol.asyncIterator]
if (method != null) return method.call(iterable);
Expand Down

0 comments on commit ff04d35

Please sign in to comment.