Skip to content

Commit 11f851d

Browse files
committed
Merge pull request BonsaiDen#288 from zousandian/master
[zh] change "assert" to "console.assert" in annotation
2 parents 12b04f4 + 6b282f9 commit 11f851d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/zh/function/arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ JavaScript 中每个函数内都能访问一个特别变量 `arguments`。这个
9393
return [a, arguments[0]];
9494
}
9595
var pair = f(17);
96-
assert(pair[0] === 42);
97-
assert(pair[1] === 17);
96+
console.assert(pair[0] === 42);
97+
console.assert(pair[1] === 17);
9898

9999
然而,的确有一种情况会显著的影响现代 JavaScript 引擎的性能。这就是使用 `arguments.callee`
100100

0 commit comments

Comments
 (0)