Add "use strict" to fix SyntaxError on Node@4 (#1988)

master
Carl von Buelow 2017-06-05 21:27:55 -04:00 committed by Christopher Chedeau
parent d9e4d8f1b8
commit 19bd2a3f7c
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ const createError = require("./parser-create-error");
const includeShebang = require("./parser-include-shebang");
function parse(text) {
// Fixes Node 4 issue (#1986)
"use strict"; // eslint-disable-line
// Inline the require to avoid loading all the JS if we don't use it
const flowParser = require("flow-parser");