From 41d0f42ddf240585fe8ec2fddfa68bf3a0ebb97a Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Tue, 21 Jun 2016 14:59:20 +0200 Subject: [PATCH] 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'. --- scripts/poly2req.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/poly2req.js b/scripts/poly2req.js index 5b446f399..369e8a91e 100755 --- a/scripts/poly2req.js +++ b/scripts/poly2req.js @@ -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;