From: Stefan Monnier Date: Mon, 24 Sep 2012 22:47:51 +0000 (-0400) Subject: * src/bytecode.c (exec_byte_code): Signal an error instead of aborting, X-Git-Tag: emacs-24.2.90~244^2~97 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22e8cf4a89aeb9f0a31f8676f0ab177c28ab473f;p=emacs.git * src/bytecode.c (exec_byte_code): Signal an error instead of aborting, when encountering an unknown bytecode. --- diff --git a/src/ChangeLog b/src/ChangeLog index 500411da531..f90445045ae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-09-24 Stefan Monnier + + * bytecode.c (exec_byte_code): Signal an error instead of aborting, + when encountering an unknown bytecode. + 2012-09-24 Paul Eggert image.c, indent.c: Use bool for booleans. diff --git a/src/bytecode.c b/src/bytecode.c index 5f4fdcc5eff..648813aed86 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -1876,7 +1876,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, /* Actually this is Bstack_ref with offset 0, but we use Bdup for that instead. */ /* CASE (Bstack_ref): */ - emacs_abort (); + error ("Invalid byte opcode"); /* Handy byte-codes for lexical binding. */ CASE (Bstack_ref1):