Skip to content

Commit 4ccf58c

Browse files
author
Marek Sierociński
committed
Version 1.0.0
1 parent 66c5e8a commit 4ccf58c

17 files changed

+2612
-813
lines changed

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
## Info
88

9-
This is **not** a "safe JavaScript eval". This library only mimics `eval()` functionality to some point.
10-
It always returns the value of given expression. You always need to provide context in which it will be executed (context **must be** an Object).
11-
12-
Pure JavaScript! No dependencies! ^^,
9+
* This is **not** a "safe JavaScript eval"!
10+
* This library only mimics `eval()` functionality to some point.
11+
* It always returns the value of given expression. You always need to provide context in which it will be executed (context **must be** an Object).
12+
* Pure JavaScript! No dependencies! ^^,
13+
* Minified version is only ~16KB
1314

1415
### What's working
1516

@@ -53,13 +54,19 @@ Pure JavaScript! No dependencies! ^^,
5354
* grouping (paranthesis)
5455
* calling methods
5556
* support nested methods (e.g. `foo(1, bar(item.a, item.b))`)
57+
* accessing allowed global Object:
58+
* `Date`
59+
* `Math`
60+
* `Number`
61+
* `String`
62+
* `Array`
63+
* `Object`
5664
* mixing above
5765

5866
### TODO
5967

6068
* one-argument operators:
6169
* `new` (I don't know if it's good idea?)
62-
* accessing allowed global Objects such as `Date`, `Math`, `Number`, `String`, `Array` and `Object`
6370

6471
## Usage
6572

0 commit comments

Comments
 (0)