6to5-runtime
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -63,7 +63,3 @@ "use strict"; | ||
exports.toArray = function (arr) { | ||
if (Array.isArray(arr)) { | ||
return arr; | ||
} else { | ||
return _to5Helpers.tailCall(_core.Array.from, [arr], Array); | ||
} | ||
return Array.isArray(arr) ? arr : _to5Helpers.tailCall(_core.Array.from, [arr], Array); | ||
}; | ||
@@ -192,16 +188,12 @@ | ||
if (parent === null) { | ||
return; | ||
} else { | ||
if (parent !== null) { | ||
return _to5Helpers.tailCall(set, [parent, property, value, receiver]); | ||
} | ||
} else if ("value" in desc && desc.writable) { | ||
desc.value = value; | ||
return; | ||
return desc.value = value; | ||
} else { | ||
var setter = desc.set; | ||
if (setter === undefined) { | ||
return; | ||
if (setter !== undefined) { | ||
return _to5Helpers.tailCall(setter.call, [receiver, value], setter); | ||
} | ||
return _to5Helpers.tailCall(setter.call, [receiver, value], setter); | ||
} | ||
@@ -235,2 +227,3 @@ }; | ||
Tail.prototype._isTailDescriptor = true; | ||
var isRunning = false; | ||
@@ -244,3 +237,3 @@ | ||
result = result.func.apply(result.context, result.args); | ||
} while (result instanceof Tail); | ||
} while (result instanceof Tail || result && result._isTailDescriptor); | ||
isRunning = false; | ||
@@ -247,0 +240,0 @@ } |
{ | ||
"name": "6to5-runtime", | ||
"description": "6to5 selfContained runtime", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"repository": "6to5/6to5", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>" | ||
} |
99711
2713