libseed: Properly bubble exceptions raised during class init
authorTim Horton <hortont424@gmail.com>
Fri, 15 Jan 2010 04:36:17 +0000 (23:36 -0500)
committerTim Horton <hortont424@gmail.com>
Fri, 15 Jan 2010 04:36:17 +0000 (23:36 -0500)
commit5efce55da01646afdf1c46edefa27d62f04292da
treefd397c1647160250c8886af4ad85657801cfde8c
parentf23eef37bae31dc8c39678f5282a089cdafba21a
libseed: Properly bubble exceptions raised during class init

Before, we were simply catching the exception, printing it, and continuing
on happily. This completely defeats the point of exceptions. Now, we pop
the exception into the class's qdata (a little ugly) and bubble it up and
clear it the first time we encounter it (when the class is created, the
first time it's instantiated).
libseed/seed-engine.c
libseed/seed-gtype.c
tests/javascript/gtypes/gtype-class-init-exception.js