From c0eb8dc6c26738b8ef43e07fe1392d5e58608901 Mon Sep 17 00:00:00 2001 From: Matthew W Date: Mon, 5 Sep 2016 09:49:12 +0100 Subject: [PATCH] Fix JS output routine which (incorrectly) removed the asterisk from `yield *`. Improve syntax testing to catch differences in primitive values in ASTs --- README.md | 5 +++++ package.json | 2 +- tests/syntax/yield.js | 5 +++++ tests/test-syntax.js | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tests/syntax/yield.js diff --git a/README.md b/README.md index d9e0b71..aa79a03 100644 --- a/README.md +++ b/README.md @@ -829,6 +829,11 @@ The test is a simple set of nested loops calling async functions that don't do m Changelog ========== +05-Sep-16 v2.6.6 + +- Fix JS output routine which (incorrectly) removed the asterisk from `yield *`. +- Improve syntax testing to catch differences in primitive values in ASTs + 26-Aug-16 v2.6.5 - Fix JS output routine which (incorrectly) removed parenthesis from `a || (()=>b)` causing a precedence problem. diff --git a/package.json b/package.json index d1a417e..12599fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodent", - "version": "2.6.5", + "version": "2.6.6", "description": "NoDent - Asynchronous Javascript language extensions", "main": "nodent.js", "scripts": { diff --git a/tests/syntax/yield.js b/tests/syntax/yield.js new file mode 100644 index 0000000..bf46072 --- /dev/null +++ b/tests/syntax/yield.js @@ -0,0 +1,5 @@ +function *w(){ + var a = yield 1 ; + var b = yield* 2 ; +} + diff --git a/tests/test-syntax.js b/tests/test-syntax.js index c3ef66f..d4ad384 100644 --- a/tests/test-syntax.js +++ b/tests/test-syntax.js @@ -109,7 +109,7 @@ function eqTree(a,b,p) { throw new Error("length("+ka.length+","+kb.length+") "+p) ; for (var i=0;i