From 8b3a2efe74849ef42927ed34e9256cc87400629b Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Thu, 16 Jun 2011 10:52:11 +0200 Subject: [PATCH] Exclude maglev bootstrap classes from stacktrace --- lib/sinatra/base.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 0e2f0aac..02881fc1 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -1287,7 +1287,8 @@ module Sinatra /rubygems\/custom_require\.rb$/, # rubygems require hacks /active_support/, # active_support require hacks /bundler(\/runtime)?\.rb/, # bundler require hacks - /= 1.9.2 + /= 1.9.2 + /src\/kernel\/bootstrap\/[A-Z]/ # maglev kernel files ] # add rubinius (and hopefully other VM impls) ignore patterns ... @@ -1304,7 +1305,7 @@ module Sinatra def caller_locations cleaned_caller 2 end - + private # used for deprecation warnings def warn(message)