Skip to content

Instantly share code, notes, and snippets.

View stormbrew's full-sized avatar

stormbrew stormbrew

  • Edmonton, Alberta, Canada
View GitHub Profile
We couldn’t find that file to show.
From 74958fc6092010d8f9d55e569d4276e9b6109523 Mon Sep 17 00:00:00 2001
From: Graham <[email protected]>
Date: Thu, 28 Jan 2010 15:46:33 -0700
Subject: [PATCH 1/2] Updated spec for issue when raising an object instance with a message
---
spec/ruby/core/exception/exception_spec.rb | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/spec/ruby/core/exception/exception_spec.rb b/spec/ruby/core/exception/exception_spec.rb
Program received signal SIGINT, Interrupt.
0x9243046e in __semwait_signal ()
(gdb) bt
#0 0x9243046e in __semwait_signal ()
#1 0x9245b3e6 in _pthread_cond_wait ()
#2 0x9245adcd in pthread_cond_wait$UNIX2003 ()
#3 0x000bc158 in thread::Condition::wait (this=0x4, mutex=@0x4) at thread.hpp:376
#4 0x000e67de in rubinius::Channel::receive_timeout (this=0x22994dc, state=0xf00ee0, duration=0x1a, call_frame=0xbfffd500) at vm/builtin/channel.cpp:122
#5 0x000e6b37 in rubinius::Channel::receive (this=0x4, state=0x4, call_frame=0x4) at vm/builtin/channel.cpp:66
#6 0x00081acf in rubinius::Primitives::channel_receive (state=0xf00ee0, call_frame=0xbfffd500, msg=@0x11c43e0, args=@0xbfffd49c) at primitives_glue.gen.cpp:3949
From a3f952616a416480f9f382248c39d0f37b1385b2 Mon Sep 17 00:00:00 2001
From: Graham <[email protected]>
Date: Thu, 28 Jan 2010 15:46:33 -0700
Subject: [PATCH 1/2] Updated spec for issue when raising an object instance with a message
In MRI, the internal behaviour when passed an object instance as the first argument and a message as the second argument to raise is to clone the object and call the internal (original) initialize on the object. This makes it so that message is set even if the derived initialize doesn't take a message argument.'
---
spec/ruby/language/rescue_spec.rb | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)