Permalink
Browse files

Merge pull request #194 from Rob--W/patch-1

Fix: Spidermonkey dropped --utf8 flag
  • Loading branch information...
2 parents cb867f0 + 584d048 commit 318b2fb134dcf63f916a1ab75089eba2f62d84c5 @mattbasta committed May 1, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 validator/testcases/javascript/spidermonkey.py
@@ -111,6 +111,15 @@ def _get_tree(code, shell):
stdout=subprocess.PIPE)
data, stderr = shell_obj.communicate()
+ # Spidermonkey dropped the -U flag on 29 Oct 2012
+ if stderr and "Invalid short option: -U" in stderr:
+ cmd.remove("-U")
+ shell_obj = subprocess.Popen(cmd,
+ shell=False,
+ stderr=subprocess.PIPE,
+ stdout=subprocess.PIPE)
+
+ data, stderr = shell_obj.communicate()
if stderr and not data:
raise RuntimeError('Error calling %r: %s' % (cmd, stderr))

0 comments on commit 318b2fb

Please sign in to comment.