Show user hint on wrong Node.js version, fixes #2435.

This is more of a hack but looks like the best we can do.

The reason for this is the following:

1/ we require strict mode for our v4 script

2/ v0.10 in strict mode marks 'let' as a reserved keyword,
   aborting before execution any code in the script. Thus,
   we can't assert e.g. on process.versions['node'] !== '4'.
This commit is contained in:
Daniel J. Hofmann 2016-06-21 14:59:20 +02:00 committed by Patrick Niklaus
parent 2868f702a5
commit 41d0f42ddf
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -2,7 +2,7 @@
'use strict';
let fs = require('fs');
let fs = require('fs'); // Node 4.x required!
let VERSION = "route_5.0";
let SAMPLE_SIZE = 20;