From 41522d482aff9b671753c389ec2ea9c88f7cd1c4 Mon Sep 17 00:00:00 2001 From: Carlos Espa <43477095+Ceres6@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:31:31 +0200 Subject: [PATCH] Update doc/contributing/adding-v8-fast-api.md Co-authored-by: Aviv Keller --- doc/contributing/adding-v8-fast-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/contributing/adding-v8-fast-api.md b/doc/contributing/adding-v8-fast-api.md index e69c7fcc49d445..54f9c0485cff2a 100644 --- a/doc/contributing/adding-v8-fast-api.md +++ b/doc/contributing/adding-v8-fast-api.md @@ -38,7 +38,7 @@ for example, they may not trigger garbage collection. * The fast callback must be idempotent up to the point where error and fallback conditions are checked, because otherwise executing the slow callback might produce visible side effects twice. -* If the receiver is used in the callback it must be passed as a second argument +* If the receiver is used in the callback, it must be passed as a second argument, leaving the first one unused, to prevent the JS land from accidentally omitting the receiver when invoking the fast API method.