diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-07-24 22:57:59 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-07-24 22:57:59 +0900 |
| commit | 42b7d75a6728d4a17af68ee8e0bd4b0dabf7e9ab (patch) | |
| tree | ffadebc99d8ffa927f86e692733ad7d75191b507 /src | |
| parent | 328353b287bcacf29108766f8f89891bb1cf3281 (diff) | |
| download | mruby-42b7d75a6728d4a17af68ee8e0bd4b0dabf7e9ab.tar.gz mruby-42b7d75a6728d4a17af68ee8e0bd4b0dabf7e9ab.zip | |
instance_eval should raise NotImplementedError on string argument
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel.c b/src/kernel.c index f5a1f3d53..e75fcfc88 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -582,7 +582,7 @@ mrb_obj_instance_eval(mrb_state *mrb, mrb_value self) mrb_value a, b; if (mrb_get_args(mrb, "|S&", &a, &b) == 1) { - mrb_raise(mrb, E_RUNTIME_ERROR, "instance_eval with string not implemented"); + mrb_raise(mrb, E_NOTIMP_ERROR, "instance_eval with string not implemented"); } return mrb_yield_with_self(mrb, b, 0, 0, self); } |
