-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Not closing sub-evaluation when there is arg-evaluation as last one
- Loading branch information
Marek Sierociński
committed
Mar 21, 2020
1 parent
f7226e6
commit f27016f
Showing
6 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
const meval = require('../src'); | ||
|
||
console.log( | ||
meval('x.toLowerCase()', { | ||
x: 'Hello World' | ||
}) | ||
); | ||
var x = meval('(item.fromTime == null || item.fromTime <= Date.now()) && (item.toTime == null || item.toTime > Date.now())', { | ||
item: { | ||
fromTime: null, | ||
toTime: 1584794436402 | ||
} | ||
}); | ||
console.log(x); |