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

[Truffle] Implementing more Array#[]=. #2775

Merged
merged 1 commit into from Mar 30, 2015

Conversation

bjfish
Copy link
Contributor

@bjfish bjfish commented Mar 29, 2015

No description provided.

final int normalizedIndex = array.normalizeIndex(index);
if (normalizedIndex < 0) {
CompilerDirectives.transferToInterpreter();
String errMessage = "index " + index + " too small for array; minimum: " + Integer.toString(-array.getSize());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what MRI says, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@bjfish bjfish force-pushed the truffle_array_element_set_v2 branch from 35add5a to e73e717 Compare March 30, 2015 00:48
chrisseaton added a commit that referenced this pull request Mar 30, 2015
@chrisseaton chrisseaton merged commit 8387536 into jruby:master Mar 30, 2015
@chrisseaton chrisseaton added this to the truffle-dev milestone Mar 30, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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