Skip to content

Commit

Permalink
version 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 8, 2019
1 parent 627e7bc commit 5b1ff1d
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.1
### Bugfix
* use exception.code for code that triggered exception

## 0.8.0
### Features
* new nth and reverse functions
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: publish test coveralls lint

VERSION=0.8.0
VERSION=0.8.1
BRANCH=`git branch | grep '^*' | sed 's/* //'`
DATE=`date -uR`
SPEC_CHECKSUM=`md5sum spec/lips.spec.js | cut -d' ' -f 1`
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## LIPS is Pretty Simple

[![npm](https://img.shields.io/badge/npm-0.8.0-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
[![travis](https://travis-ci.org/jcubic/jquery.terminal.svg?branch=master&24989f84cb1e8d5b431a8368e79a8f47ef021a4e)](https://travis-ci.org/jcubic/jquery.terminal)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=master&2565a767972a64e2959f434e12e8fcf1)](https://coveralls.io/github/jcubic/lips?branch=master)
[![npm](https://img.shields.io/badge/npm-0.8.1-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
[![travis](https://travis-ci.org/jcubic/jquery.terminal.svg?branch=master&627e7bc615eae8dc657320600d1185076849735f)](https://travis-ci.org/jcubic/jquery.terminal)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=master&66ae96f244da4bd63c74f953f57cfcf3)](https://coveralls.io/github/jcubic/lips?branch=master)


LIPS is very simple Lisp, similar to Scheme written in JavaScript.
Expand Down
8 changes: 4 additions & 4 deletions dist/lips.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**@license
* LIPS is Pretty Simple - simple scheme like lisp in JavaScript - v. 0.8.0
* LIPS is Pretty Simple - simple scheme like lisp in JavaScript - v. 0.8.1
*
* Copyright (c) 2018-2019 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* includes unfetch by Jason Miller (@developit) MIT License
*
* build: Tue, 08 Jan 2019 21:43:44 +0000
* build: Tue, 08 Jan 2019 22:26:13 +0000
*/
(function () {
'use strict';
Expand Down Expand Up @@ -4326,7 +4326,7 @@ function _typeof(obj) {
env: env,
dynamic_scope: dynamic_scope,
error: function error(e, code) {
e.message += '\nin code: ' + code.toString();
e.code = code.toString();
throw e;
}
});
Expand Down Expand Up @@ -4450,7 +4450,7 @@ function _typeof(obj) {
}); // --------------------------------------

return {
version: '0.8.0',
version: '0.8.1',
exec: exec,
parse: parse,
tokenize: tokenize,
Expand Down
6 changes: 3 additions & 3 deletions dist/lips.min.js

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": "@jcubic/lips",
"version": "0.8.0",
"version": "0.8.1",
"description": "Simple Scheme Like Lisp in JavaScript",
"main": "src/lips.js",
"unpkg": "dist/lips.min.js",
Expand Down
1 change: 1 addition & 0 deletions spec/lips.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ describe('evaluate', function() {
});
it('should throw exception', function() {
return lips.exec(code, env, env).catch(e => {
expect(e.code).toEqual('(apply f args)');
expect(e).toEqual(new Error("Unbound variable `f'"));
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -2508,7 +2508,7 @@
env,
dynamic_scope,
error: (e, code) => {
e.message += '\nin code: ' + code.toString();
e.code = code.toString();
throw e;
}
});
Expand Down

0 comments on commit 5b1ff1d

Please sign in to comment.