Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for arguments object as TypedArray constructor argument #297

Closed
wants to merge 2 commits into from

Conversation

anton-bannykh
Copy link

Before the change the following would cause org.mozilla.javascript.EcmaError: Error: invalid argument

function foo() {
  return new Int32Array(arguments);
};

The proposed change is completely untested and should be considered more of a bug report.

Before the change the following would cause `org.mozilla.javascript.EcmaError: Error: invalid argument`
```
function foo() {
  return new Int32Array(arguments);
};
```

The proposed change is completely untested and should be considered more of a bug report.
@gbrail
Copy link
Collaborator

gbrail commented Sep 28, 2017

Sorry I have not caught up on all of these.

This looks like a very reasonable change but I'd really like to see a test case.

@rbri
Copy link
Collaborator

rbri commented Jul 8, 2018

Have created a new PR #457 with the same code change but including an unit test.

gbrail pushed a commit that referenced this pull request Jul 9, 2018
this is the same as #297 but includes a simple test.
@gbrail gbrail closed this Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants