aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/JSFFIFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/javascript/jsc/bindings/JSFFIFunction.h')
-rw-r--r--src/javascript/jsc/bindings/JSFFIFunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/javascript/jsc/bindings/JSFFIFunction.h b/src/javascript/jsc/bindings/JSFFIFunction.h
index 8f65bf632..421adc3ff 100644
--- a/src/javascript/jsc/bindings/JSFFIFunction.h
+++ b/src/javascript/jsc/bindings/JSFFIFunction.h
@@ -34,7 +34,10 @@ using FFIFunction = JSC::EncodedJSValue (*)(JSC::JSGlobalObject* globalObject, J
*
* It was about 20% faster than using the JavaScriptCore C API for functions with 1 argument
*
- * Note: there is no wrapper function here
+ * There is no wrapper function. It does zero bounds checking on the arguments.
+ * It does not check for exceptions. It does not check for return value.
+ * It is the caller's responsibility to not buffer overflow the arguments
+ * For all those reasons, this shouldn't be used directly.
*/
class JSFFIFunction final : public JSC::JSFunction {
public: