mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
test: add benchmark
This commit is contained in:
@@ -44,7 +44,8 @@ export function evalExp (exp: string, scope: Scope): any {
|
||||
}
|
||||
|
||||
export function evalValue (str: string, scope: Scope) {
|
||||
str = str && str.trim()
|
||||
if (!str) return null
|
||||
str = str.trim()
|
||||
if (!str) return undefined
|
||||
|
||||
if (lexical.isLiteral(str)) {
|
||||
|
||||
Reference in New Issue
Block a user