Skip to content


Move require 'bundler' up before the begin ... rescue ... end. #1474

merged 1 commit into from

2 participants


This means that Bundler::BundlerError will be defined before the rescue clause is set up, and (at least on MagLev), this allows us to optimize it - we know the Class object id before the rescue clause is set up and can mark the stack with a more specific clause.

@sferik sferik merged commit acbcfd4 into bundler:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/bundle
2 bin/bundle
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
+require 'bundler'
- require 'bundler'
# Check if an older version of bundler is installed
$:.each do |path|
if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
Something went wrong with that request. Please try again.