Created
April 1, 2010 21:20
-
-
Save kronos/352379 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/kernel/common/global.rb b/kernel/common/global.rb | |
| index fb80419..4cbbd1e 100644 | |
| --- a/kernel/common/global.rb | |
| +++ b/kernel/common/global.rb | |
| @@ -84,7 +84,7 @@ module Rubinius | |
| end | |
| def illegal_set(*args) | |
| - raise RuntimeError, "unable to set global" | |
| + raise NameError, "#{args[0]} is a read-only variable" | |
| end | |
| def set_hook(var, getter=nil, setter=nil, &block) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment