Skip to content

Commit

Permalink
* parse.y (primary): empty not should call '!' on nil.
Browse files Browse the repository at this point in the history
  cf [ruby-dev:35227]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Jun 27, 2008
1 parent f0bb637 commit 8f03e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Expand Up @@ -4,6 +4,11 @@ Fri Jun 27 17:45:17 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>

* test/erb/test_erb.rb: add tests for def_method.

Fri Jun 27 14:29:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>

* parse.y (primary): empty not should call '!' on nil.
cf [ruby-dev:35227]

Fri Jun 27 14:25:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>

* vm.c (vm_eval_body): if thrown exception is frozen, reraise it to
Expand Down
2 changes: 1 addition & 1 deletion parse.y
Expand Up @@ -2624,7 +2624,7 @@ primary : literal
| keyword_not '(' rparen
{
/*%%%*/
$$ = NEW_LIT(Qtrue);
$$ = call_uni_op(cond(NEW_NIL()), '!');
/*%
$$ = dispatch2(unary, ripper_intern("not"), Qnil);
%*/
Expand Down

0 comments on commit 8f03e4d

Please sign in to comment.