Merge branch 'development'

cially if it merges an updated upstream into a topic branch.
This commit is contained in:
Sebastian McKenzie 2015-07-28 09:10:49 +01:00
commit 1c37c3a8c4
10 changed files with 31 additions and 10 deletions

View File

@ -1 +1 @@
5.8.9
5.8.12

View File

@ -1,6 +1,6 @@
{
"name": "babel",
"version": "5.8.9",
"version": "5.8.12",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",

View File

@ -1,6 +1,6 @@
{
"name": "babel-runtime",
"version": "5.8.9",
"version": "5.8.12",
"description": "babel selfContained runtime",
"license": "MIT",
"repository": "babel/babel",

View File

@ -1,6 +1,6 @@
{
"name": "babel-core",
"version": "5.8.9",
"version": "5.8.12",
"description": "A compiler for writing next generation JavaScript",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
@ -42,7 +42,7 @@
"babel-plugin-runtime": "^1.0.7",
"babel-plugin-undeclared-variables-check": "^1.0.2",
"babel-plugin-undefined-to-void": "^1.1.6",
"babylon": "^5.8.9",
"babylon": "^5.8.12",
"bluebird": "^2.9.33",
"chalk": "^1.0.0",
"convert-source-map": "^1.1.0",

View File

@ -333,14 +333,14 @@ export default class DefaultFormatter {
getModuleName() {
var opts = this.file.opts;
// moduleId is n/a if a `getModuleId()` is provided
if (opts.moduleId && !opts.getModuleId) {
if (opts.moduleId != null && !opts.getModuleId) {
return opts.moduleId;
}
var filenameRelative = opts.filenameRelative;
var moduleName = "";
if (opts.moduleRoot) {
if (opts.moduleRoot != null) {
moduleName = opts.moduleRoot + "/";
}
@ -348,7 +348,7 @@ export default class DefaultFormatter {
return moduleName + opts.filename.replace(/^\//, "");
}
if (opts.sourceRoot) {
if (opts.sourceRoot != null) {
// remove sourceRoot from filename
var sourceRootRegEx = new RegExp("^" + opts.sourceRoot + "\/?");
filenameRelative = filenameRelative.replace(sourceRootRegEx, "");

View File

@ -78,6 +78,18 @@ var memberExpressionOptimisationVisitor = {
state.references.push(this);
}
},
/**
* Deopt on use of a binding identifier with the same name as our rest param.
*
* See https://github.com/babel/babel/issues/2091
*/
BindingIdentifier(node, parent, scope, state) {
if (node.name === state.name) {
state.deopted = true;
}
}
};

View File

@ -65,7 +65,6 @@ getBindingIdentifiers.keys = {
ClassDeclaration: "id",
ClassExpression: "id",
SpreadElement: "argument",
RestElement: "argument",
UpdateExpression: "argument",

View File

@ -0,0 +1 @@
const deepAssign = (...args) => args = [];

View File

@ -0,0 +1,9 @@
"use strict";
var deepAssign = function deepAssign() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return args = [];
};

View File

@ -1,6 +1,6 @@
{
"name": "babylon",
"version": "5.8.9",
"version": "5.8.12",
"description": "",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",