* src/bytecode.c (exec_byte_code): Signal an error instead of aborting,
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 24 Sep 2012 22:47:51 +0000 (18:47 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 24 Sep 2012 22:47:51 +0000 (18:47 -0400)
when encountering an unknown bytecode.

src/ChangeLog
src/bytecode.c

index 500411d..f904450 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * bytecode.c (exec_byte_code): Signal an error instead of aborting,
+       when encountering an unknown bytecode.
+
 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        image.c, indent.c: Use bool for booleans.
index 5f4fdcc..648813a 100644 (file)
@@ -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):