Allow coreJS Symbol to be type object (#9756)

This commit is contained in:
Conrad Buck 2019-03-24 01:47:09 -07:00 committed by Nicolò Ribaudo
parent a559397feb
commit ff04d3535c

View File

@ -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);