as2fm.as2fm_common.ecmascript_interpretation.interpret_ecma_script_expr
- as2fm.as2fm_common.ecmascript_interpretation.interpret_ecma_script_expr(expr: str, variables: Dict[str, bool | int | float | MutableSequence | str] | None = None, allow_dict_results: bool = False) bool | int | float | MutableSequence | str | dict
Interpret the ECMA script expression and return the resulting value.
- Parameters:
expr – The ECMA script expression
variables – A dictionary of variables to be used in the ECMA script context
allow_dict_results – Whether the result of the expr. can be an object (encoded by a dict)
- Returns:
The interpreted object