test: add benchmark

This commit is contained in:
harttle
2019-02-23 21:57:02 +08:00
parent 37d12a14eb
commit 279458c670
11 changed files with 150 additions and 7 deletions
+2 -1
View File
@@ -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)) {