diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-20 17:57:51 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-20 17:57:51 +0000 |
| commit | 7d263c8547a2dd23c49666e2fb7dff1f3804e836 (patch) | |
| tree | 55f3924841adb88fe695bf68d21e5221265d6241 | |
| parent | cc2724c116a42bd9282b52d2386207013d2ed245 (diff) | |
| download | ruby-7d263c8547a2dd23c49666e2fb7dff1f3804e836.tar.gz ruby-7d263c8547a2dd23c49666e2fb7dff1f3804e836.tar.xz ruby-7d263c8547a2dd23c49666e2fb7dff1f3804e836.zip | |
* ext/json/ext/parser/parse.c: use ruby_xfree().
* ext/json/ext/parser/parse.rl: ditto.
* ext/json/ext/parser/unicode.c: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ext/json/lib/json/add/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/lib/json/add/core.rb b/ext/json/lib/json/add/core.rb index 4423e7ad7..7121a77ff 100644 --- a/ext/json/lib/json/add/core.rb +++ b/ext/json/lib/json/add/core.rb @@ -96,7 +96,7 @@ class Struct def to_json(*args) klass = self.class.name - klass.to_s.empty? and raise JSON::JSONError, "Only named structs are supported!" + klass.nil? and raise JSON::JSONError, "Only named structs are supported!" { 'json_class' => klass, 'v' => values, |
