use actual parameter reference for non-last default parameters - fixes #1690

This commit is contained in:
Sebastian McKenzie
2015-06-05 14:08:18 +01:00
parent 2539d08dce
commit 4b85b05839
5 changed files with 54 additions and 20 deletions

View File

@@ -0,0 +1,3 @@
function foo(a = "foo", b) {
}

View File

@@ -0,0 +1,5 @@
"use strict";
function foo(a, b) {
if (a === undefined) a = "foo";
}