1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Merge pull request #954 from EggOxygen/patch-1

修正一处小地方
This commit is contained in:
Ruan YiFeng 2020-02-27 11:43:40 +08:00 committed by GitHub
commit 2e1c10776a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ function f(x = 1, y) {
} }
f() // [1, undefined] f() // [1, undefined]
f(2) // [2, undefined]) f(2) // [2, undefined]
f(, 1) // 报错 f(, 1) // 报错
f(undefined, 1) // [1, 1] f(undefined, 1) // [1, 1]