Skip to content

Commit

Permalink
Clarify the documentation on scope when using rawArgs, see #1055
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Apr 4, 2020
1 parent a23f9c3 commit 3153de2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/expressions/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3153de2

Please sign in to comment.