Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rename "arguments" to "scriptArgs" #23

Merged
merged 2 commits into from

2 participants

zardam Micha Niskin
Micha Niskin
Owner

Hi, thanks for the patch! It looks great but does it break when older versions of spidermonkey are used? If so, would it be possible to choose the right one depending on which one is defined?

zardam

Hi, I have added the test. It should not break on older versions.

Micha Niskin micha merged commit 061161b into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  jsawk
2  jsawk
View
@@ -1105,7 +1105,7 @@ replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
if (!noprint)
out(RS);
-})(arguments);
+})(typeof arguments === 'undefined' ? scriptArgs : arguments);
__END__
nlines=0
Something went wrong with that request. Please try again.