Skip to content

Commit 8050e28

Browse files
zhw2590582leviding
authored andcommitted
Update article.md (javascript-tutorial#281)
1 parent 08a6a6c commit 8050e28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

1-js/08-error-handling/1-try-catch/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ try {
308308
309309
if (!user.name) {
310310
*!*
311-
抛出 new SyntaxError("Incomplete data: no name"); // (*)
311+
throw new SyntaxError("Incomplete data: no name"); // (*)
312312
*/!*
313313
}
314314

0 commit comments

Comments
 (0)