babel-runtime
Advanced tools
Comparing version 4.7.16 to 5.0.0-beta1
@@ -5,9 +5,9 @@ "use strict"; | ||
function defineProperties(target, props) { | ||
for (var key in props) { | ||
var prop = props[key]; | ||
prop.configurable = true; | ||
if (prop.value) prop.writable = true; | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if (descriptor.value) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
Object.defineProperties(target, props); | ||
} | ||
@@ -14,0 +14,0 @@ |
"use strict"; | ||
var _core = require("babel-runtime/core-js")["default"]; | ||
exports["default"] = function (obj, key, value) { | ||
return Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
enumerable: key == null || typeof _core.Symbol == "undefined" || key.constructor !== _core.Symbol, | ||
configurable: true, | ||
@@ -8,0 +10,0 @@ writable: true |
@@ -10,7 +10,21 @@ "use strict"; | ||
var _arr = []; | ||
var _n = true; | ||
var _d = false; | ||
var _e = undefined; | ||
for (var _iterator = _core.$for.getIterator(arr), _step; !(_step = _iterator.next()).done;) { | ||
_arr.push(_step.value); | ||
try { | ||
for (var _i = _core.$for.getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { | ||
_arr.push(_s.value); | ||
if (i && _arr.length === i) break; | ||
if (i && _arr.length === i) break; | ||
} | ||
} catch (err) { | ||
_d = true; | ||
_e = err; | ||
} finally { | ||
try { | ||
if (!_n && _i["return"]) _i["return"](); | ||
} finally { | ||
if (_d) throw _e; | ||
} | ||
} | ||
@@ -17,0 +31,0 @@ |
{ | ||
"name": "babel-runtime", | ||
"description": "babel selfContained runtime", | ||
"version": "4.7.16", | ||
"version": "5.0.0-beta1", | ||
"repository": "babel/babel", | ||
@@ -6,0 +6,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
110184
36
3002
2