1 | // For backward compatibility, deprecated since version 6.0.0. Date: 2018-12-05
|
2 | import { factory } from '../../utils/factory'
|
3 | import { warnOnce } from '../../utils/log'
|
4 |
|
5 | export const createDeprecatedEval = /* #__PURE__ */ factory('eval', ['evaluate'], ({ evaluate }) => {
|
6 | return function (...args) {
|
7 | warnOnce('Function "eval" has been renamed to "evaluate" in v6.0.0, please use the new function instead.')
|
8 |
|
9 | return evaluate.apply(evaluate, args)
|
10 | }
|
11 | })
|