Compare commits

...

2 Commits

Author SHA1 Message Date
Sebastian McKenzie
b599e2c794 v1.13.6 2014-11-23 21:51:31 +11:00
Sebastian McKenzie
7f57d3d6a2 fix experimental object spread/rest helper 2014-11-23 21:50:49 +11:00
4 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,7 @@
# 1.13.6
* Fix experimental object spread/rest helper.
# 1.13.5
* Upgrade `acorn-6to5`.

View File

@@ -1,9 +1,9 @@
(function (target, keys) {
(function (obj, keys) {
var target = {};
for (var i in target) {
for (var i in obj) {
if (keys.indexOf(i) >= 0) continue;
if (!Object.prototype.hasOwn.call(target)) continue;
target[i] = target[i];
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
target[i] = obj[i];
}
return target;
})

View File

@@ -1,7 +1,7 @@
{
"name": "6to5",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "1.13.5",
"version": "1.13.6",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://github.com/6to5/6to5",
"repository": {

View File

@@ -1,11 +1,11 @@
"use strict";
var _objectSpread = function (target, keys) {
var _objectSpread = function (obj, keys) {
var target = {};
for (var i in target) {
for (var i in obj) {
if (keys.indexOf(i) >= 0) continue;
if (!Object.prototype.hasOwn.call(target)) continue;
target[i] = target[i];
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
target[i] = obj[i];
}
return target;