1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Make node --harmony bin/cake test pass on Node 9 (#5012)

* Make `node --harmony bin/cake test` pass on Node 9

Make classMaker() explicitly return an object

* Update Travis and AppVeyor to use --harmony and v9
This commit is contained in:
Robert de Forest 2018-03-17 23:02:40 -07:00 committed by Geoffrey Booth
parent 0268505119
commit ce66a499de
3 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@ language: node_js
node_js: node_js:
- 6 - 6
- 8 - 8
- 9
cache: cache:
directories: directories:
@ -14,5 +15,6 @@ script:
- node ./bin/cake build:full - node ./bin/cake build:full
- node ./bin/cake build:browser - node ./bin/cake build:browser
- node ./bin/cake test - node ./bin/cake test
- node --harmony ./bin/cake test
- node ./bin/cake test:browser - node ./bin/cake test:browser
- node ./bin/cake test:integrations - node ./bin/cake test:integrations

View file

@ -2,6 +2,7 @@ environment:
matrix: matrix:
- nodejs_version: '6' - nodejs_version: '6'
- nodejs_version: '8' - nodejs_version: '8'
- nodejs_version: '9'
- nodejs_version: '' # Installs latest. - nodejs_version: '' # Installs latest.
install: install:
@ -19,6 +20,7 @@ test_script:
- node ./bin/cake build:full - node ./bin/cake build:full
- node ./bin/cake build:browser - node ./bin/cake build:browser
- node ./bin/cake test - node ./bin/cake test
- node --harmony ./bin/cake test
- node ./bin/cake test:browser - node ./bin/cake test:browser
- node ./bin/cake test:integrations - node ./bin/cake test:integrations

View file

@ -266,6 +266,7 @@ test "classes with value'd constructors", ->
inner = ++counter inner = ++counter
-> ->
@value = inner @value = inner
@
class One class One
constructor: classMaker() constructor: classMaker()