Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 100802c5c1f0
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0c8c5585c63
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 9, 2015

  1. Copy the full SHA
    a060a78 View commit details
  2. Copy the full SHA
    d0c8c55 View commit details
7 changes: 0 additions & 7 deletions spec/truffle/tags/core/array/index_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -650,6 +650,15 @@ public Object exit(int exitCode) {
return null;
}

@Specialization
public Object exit(boolean status) {
notDesignedForCompilation();

getContext().shutdown();
System.exit(status ? 0 : -1);
return null;
}

}

@CoreMethod(names = "exit!", isModuleFunction = true, optional = 1)
6 changes: 6 additions & 0 deletions truffle/src/main/ruby/core/rubinius/common/array.rb
Original file line number Diff line number Diff line change
@@ -459,6 +459,12 @@ def reverse_each
self
end

def find_index(obj=undefined)
super
end

alias_method :index, :find_index

def to_a
if self.instance_of? Array
self