From 06172cb4f597cbc8b7ffd468587d635d2739c19e Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Tue, 4 Dec 2018 19:22:00 -0800 Subject: [PATCH] Update to the latest version of TypeScript compiler, linter, and formatter Due to the latest formatter does not run on Node.js v4 anymore, this version has been excluded from Travis CI runs. Closes gh-1958 --- .travis.yml | 1 - package.json | 6 +++--- src/scanner.ts | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5ce29f8f1..b8043687c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ sudo: false language: node_js script: "npm run travis" node_js: - - "4" - "6" - "8" - "node" diff --git a/package.json b/package.json index 49debf9e2..869ac22be 100644 --- a/package.json +++ b/package.json @@ -59,9 +59,9 @@ "temp": "~0.8.3", "test262": "git+https://git@github.com/tc39/test262.git#c4e3d12", "test262-stream": "~1.0.0", - "tslint": "~5.8.0", - "typescript": "~2.6.2", - "typescript-formatter": "~7.0.1", + "tslint": "~5.11.0", + "typescript": "~3.2.1", + "typescript-formatter": "~7.2.2", "unicode-11.0.0": "^0.7.7", "webpack": "~1.14.0" }, diff --git a/src/scanner.ts b/src/scanner.ts index d2064f0f4..bd412a288 100644 --- a/src/scanner.ts +++ b/src/scanner.ts @@ -1117,8 +1117,8 @@ export class Scanner { // avoid throwing on regular expressions that are only valid in // combination with the "u" flag. .replace( - /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, - astralSubstitute + /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, + astralSubstitute ); }