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:
- 6
- 8
- 9
cache:
directories:
@ -14,5 +15,6 @@ script:
- node ./bin/cake build:full
- node ./bin/cake build:browser
- node ./bin/cake test
- node --harmony ./bin/cake test
- node ./bin/cake test:browser
- node ./bin/cake test:integrations

View File

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

View File

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