regenerator-runtime
Advanced tools
Comparing version 0.13.11 to 0.14.0
@@ -5,3 +5,3 @@ { | ||
"description": "Runtime for Regenerator-compiled generator and async functions.", | ||
"version": "0.13.11", | ||
"version": "0.14.0", | ||
"main": "runtime.js", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -490,3 +490,3 @@ /** | ||
function values(iterable) { | ||
if (iterable) { | ||
if (iterable || iterable === "") { | ||
var iteratorMethod = iterable[iteratorSymbol]; | ||
@@ -521,4 +521,3 @@ if (iteratorMethod) { | ||
// Return an iterator with no values. | ||
return { next: doneResult }; | ||
throw new TypeError(typeof iterable + " is not iterable"); | ||
} | ||
@@ -525,0 +524,0 @@ exports.values = values; |
27765
658