Skip to content

Commit

Permalink
Remove ES2015 tests than do not parse in ES2016 (babel#4501)
Browse files Browse the repository at this point in the history
These tests are originally from Traceur, which does not fully support
ES2016.

See babel/babylon#106 for a rationale why these code blocks are not
valid ES2016.
  • Loading branch information
TimothyGu authored and panagosg7 committed Jan 17, 2017
1 parent 8e32f53 commit d1ddd3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,3 @@ var o = {
function f({x}) {}
f(o);
assert.equal(1, count);

count = 0;
function g({x}) {
'use strict';
}
g(o);
assert.equal(1, count);
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
function f(x, y = function(x) {}) {
'use strict';
}

var f2 = (x, y = function(x) {}) => {
'use strict';
};

function g() {
'use strict';
function h(x, y = function(x) {}) {
Expand Down

0 comments on commit d1ddd3f

Please sign in to comment.