projects
/
gnome.seed
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07db8b4
)
Note to self: need to properly integrate our exceptions with JS
author
Tim Horton
<hortont424@gmail.com>
Wed, 6 Jan 2010 05:04:07 +0000
(
00:04
-0500)
committer
Tim Horton
<hortont424@gmail.com>
Wed, 6 Jan 2010 05:04:07 +0000
(
00:04
-0500)
libseed/seed-exceptions.c
patch
|
blob
|
history
diff --git
a/libseed/seed-exceptions.c
b/libseed/seed-exceptions.c
index
565358a
..
5c72a10
100644
(file)
--- a/
libseed/seed-exceptions.c
+++ b/
libseed/seed-exceptions.c
@@
-64,6
+64,9
@@
seed_make_exception (JSContextRef ctx,
g_free (mes);
}
+ // TODO: needs to create a global class named 'name', and this needs to
+ // be an instance of it, for integration with normal JS!
+
exception_obj = JSObjectMake (ctx, 0, NULL);
seed_object_set_property (ctx, exception_obj, "message", js_message_ref);
seed_object_set_property (ctx, exception_obj, "name", js_name_ref);