Skip to content

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bplok20010 committed Mar 16, 2020
1 parent c9aa7eb commit 6eb64a7
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 39 deletions.
31 changes: 16 additions & 15 deletions docs/umd/eval5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/umd/eval5.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/umd/eval5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/umd/eval5.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eval5",
"version": "1.4.0",
"version": "1.4.1",
"description": "A JavaScript interpreter written in JavaScript",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
13 changes: 13 additions & 0 deletions test/evaluate/evaluate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,16 @@ test("evaluate result -3", () => {
expect(ret1).toEqual(1);
expect(ret2).toEqual(undefined);
});

test("evaluate result -4", () => {
const interpreter = new Interpreter({});

const ret1 = interpreter.evaluate(`
var a = (function () {
var b = 1;
return 2;
})();
`);

expect(ret1).toEqual(undefined);
});
31 changes: 16 additions & 15 deletions umd/eval5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion umd/eval5.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions umd/eval5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion umd/eval5.min.js.map

Large diffs are not rendered by default.

0 comments on commit 6eb64a7

Please sign in to comment.