| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d6ae65 commit 71cf558
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,7 +326,7 @@ When there is a need to throw errors from a C++ binding method, try to | |||
| 326 | 326 | return the data necessary for constructing the errors to JavaScript, | |
| 327 | 327 | then construct and throw the errors [using `lib/internal/errors.js`][errors]. | |
| 328 | 328 | ||
| 329 | - Note that in general, type-checks on arguments should be done in JavaScript | ||
| 329 | + In general, type-checks on arguments should be done in JavaScript | ||
| 330 | 330 | before the arguments are passed into C++. Then in the C++ binding, simply using | |
| 331 | 331 | `CHECK` assertions to guard against invalid arguments should be enough. | |
| 332 | 332 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments