From 6e397e4ee50ba09a6f555fcf36406273e5f40d29 Mon Sep 17 00:00:00 2001 From: juj Date: Fri, 14 Oct 2016 00:52:45 +0300 Subject: Expand "a.js" export check in binaryen.js to also work when running on Windows. (#767) --- src/js/binaryen.js-post.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js/binaryen.js-post.js') diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 7389f5afe..a96d39756 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -21,7 +21,8 @@ if (typeof exports != 'undefined') { ( process.argv && Array.isArray(process.argv) && process.argv[1] && - process.argv[1].substr(-5) === '/a.js' + (process.argv[1].substr(-5) === '/a.js' || + process.argv[1].substr(-5) === '\\a.js') ) ) ? global : -- cgit v1.2.3