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.
11 lines
123 B
JavaScript
11 lines
123 B
JavaScript
function g() {
|
|
'use strict';
|
|
function h(x, y = function(x) {}) {
|
|
|
|
}
|
|
|
|
var h2 = (x, y = function(x) {}) => {
|
|
|
|
};
|
|
}
|