From c4a2e4d414da8a4a0d2fc3c1f9a80175b0c4098d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Wed, 11 Mar 2015 14:26:51 -0700 Subject: [PATCH] Fix module option parsing of jsx command --- 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