diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-15 13:55:27 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-15 13:55:27 +0900 |
| commit | 39f47c191557ca401b6aaceb04b395227431b62f (patch) | |
| tree | c4c38c1bda794c2110b6c978e8fa15fa837221d1 | |
| parent | 79e162526954be38ca27e77159f2c127d05667cd (diff) | |
| download | mruby-39f47c191557ca401b6aaceb04b395227431b62f.tar.gz mruby-39f47c191557ca401b6aaceb04b395227431b62f.zip | |
remove LoadError
| -rw-r--r-- | mrblib/error.rb | 4 | ||||
| -rw-r--r-- | test/t/exception.rb | 12 |
2 files changed, 1 insertions, 15 deletions
diff --git a/mrblib/error.rb b/mrblib/error.rb index 1cb2b1150..5d49ec1e4 100644 --- a/mrblib/error.rb +++ b/mrblib/error.rb @@ -21,9 +21,5 @@ end class SyntaxError < ScriptError end -# ISO 15.2.39 -class LoadError < ScriptError -end - class NotImplementedError < ScriptError end diff --git a/test/t/exception.rb b/test/t/exception.rb index d7226a368..0aed0e2e6 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -24,7 +24,7 @@ end assert('Exception#message', '15.2.22.5.2') do e = Exception.exception('a') - + e.message == 'a' end @@ -61,16 +61,6 @@ assert('SyntaxError', '15.2.38') do end end -assert('LoadError', '15.2.39') do - begin - raise LoadError.new - rescue LoadError - true - else - false - end -end - # Not ISO specified assert('Exception 1') do |
