From 3153de27eee44c5e06e433caeaf436e99dc8daff Mon Sep 17 00:00:00 2001 From: jos Date: Sat, 4 Apr 2020 17:24:36 +0200 Subject: [PATCH] Clarify the documentation on `scope` when using `rawArgs`, see #1055 --- docs/expressions/customization.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/expressions/customization.md b/docs/expressions/customization.md index 4c5fdc86d..20895b2f8 100644 --- a/docs/expressions/customization.md +++ b/docs/expressions/customization.md @@ -114,7 +114,9 @@ Where : - `args` is an Array with nodes of the parsed arguments. - `math` is the math namespace against which the expression was compiled. -- `scope` is the scope provided when evaluating the expression. +- `scope` is a shallow _copy_ of the `scope` object provided when evaluating + the expression, optionally extended with nested variables like a function + parameter `x` of in a custom defined function like `f(x) = x^2`. Raw functions must be imported in the `math` namespace, as they need to be processed at compile time. They are not supported when passed via a scope