* Parses and evaluates an expression with a given scope and merges the * resulting object into current state. * @param {string} expression * @param {!JsonObject} scope * @return {!Promise}
(expression, scope)
| 324 | * @return {!Promise} |
| 325 | */ |
| 326 | setStateWithExpression(expression, scope) { |
| 327 | return this.evaluateExpression_(expression, scope).then((result) => |
| 328 | this.setStateAndUpdateHistory_(result) |
| 329 | ); |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * Sanitizes a state object and merges the resulting object into the current |
no test coverage detected