diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2572380f3..9f04c0172 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -77,7 +77,7 @@ repos: types_or: [c++, c, cuda] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.2" + rev: "v3.0.0-alpha.3" hooks: - id: prettier diff --git a/docs/development/core.md b/docs/development/core.md index 623489a98..62a7e1d98 100644 --- a/docs/development/core.md +++ b/docs/development/core.md @@ -73,7 +73,7 @@ They can only be used in a function with a `finally:` label which should handle ### JavaScript to CPython calling convention adaptors -If we call a JavaScript function from C and that JavaScript function throws an error, it is impossible to catch it in C. We define two `EM_JS` adaptors to convert from the JavaScript calling convention to the CPython calling convention. The point of this is to ensure that errors that occur in `EM_JS` functions can be handled in C code using the ` FAIL_*`` macros. When compiled with `DEBUG_F`, when a JavaScript error is thrown a message will also be written to `console.error`. The wrappers do roughly the following: +If we call a JavaScript function from C and that JavaScript function throws an error, it is impossible to catch it in C. We define two `EM_JS` adaptors to convert from the JavaScript calling convention to the CPython calling convention. The point of this is to ensure that errors that occur in `EM_JS` functions can be handled in C code using the `FAIL_*`` macros. When compiled with `DEBUG_F`, when a JavaScript error is thrown a message will also be written to `console.error`. The wrappers do roughly the following: ```javascript try {