From ce9fd5f028baec3016f00abfe75aed3555a1f052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Mon, 16 Mar 2015 13:24:35 -0700 Subject: [PATCH] Merge pull request #3381 from zpao/jsx-nonstrictmodule Fix module option parsing of jsx command (cherry picked from commit b0a59a643a4e88832cbedf7a9b816fdc2839b9cd) --- bin/jsx | 2 +- main.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/jsx b/bin/jsx index ac1fa1470c..616d7afe40 100755 --- a/bin/jsx +++ b/bin/jsx @@ -44,7 +44,7 @@ require('commoner').version( sourceMap: this.options.sourceMapInline, stripTypes: this.options.stripTypes, es6module: this.options.es6module, - nonStrictEs6Module: this.options.nonStrictEs6Module, + nonStrictEs6module: this.options.nonStrictEs6module, target: this.options.target }; return transform(source, options); diff --git a/main.js b/main.js index 52d09eeb16..f15d44244c 100644 --- a/main.js +++ b/main.js @@ -60,8 +60,8 @@ function processOptions(opts) { if (opts.es6module) { options.sourceType = 'module'; } - if (opts.nonStrictEs6Module) { - options.sourceType = 'nonStrict6Module'; + if (opts.nonStrictEs6module) { + options.sourceType = 'nonStrictModule'; } // Instead of doing any fancy validation, only look for 'es3'. If we have