Skip to content

Commit

Permalink
fix(babel-plugin-espower): deal with babel 5.2.x internal changes. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed May 1, 2015
1 parent e59ea55 commit 1769858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/babel-estree-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function traverseUp (ancestors, traversalPath) {
ancestors.push(currentTraversingKey);
}
}
if (traversalPath.parentPath !== traversalPath) { // root node
if (traversalPath.parentPath) {
traverseUp(ancestors, traversalPath.parentPath);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/Property/expected.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var _defineProperty = function (obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: key == null || typeof Symbol == 'undefined' || key.constructor !== Symbol, configurable: true, writable: true }); };
var _defineProperty = function (obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); };

assert(assert._expr(assert._capt(_defineProperty({}, assert._capt(num, 'arguments/0/properties/0/key'), assert._capt(foo, 'arguments/0/properties/0/value')), 'arguments/0'), {
content: 'assert({ [num]: foo })',
Expand Down

0 comments on commit 1769858

Please sign in to comment.