seed r81 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r81 - trunk/libseed
- Date: Mon, 3 Nov 2008 09:45:45 +0000 (UTC)
Author: racarr
Date: Mon Nov 3 09:45:45 2008
New Revision: 81
URL: http://svn.gnome.org/viewvc/seed?rev=81&view=rev
Log:
Exception for wrong number of argmuents in Seed.print.
Modified:
trunk/libseed/seed-builtins.c
Modified: trunk/libseed/seed-builtins.c
==============================================================================
--- trunk/libseed/seed-builtins.c (original)
+++ trunk/libseed/seed-builtins.c Mon Nov 3 09:45:45 2008
@@ -79,7 +79,12 @@
JSValueRef * exception)
{
if(argumentCount < 1)
- return JSValueMakeNull(eng->context);
+ {
+ gchar * mes = g_strdup_printf("Seed.print Expected 1 argument,"
+ " got %d", argumentCount);
+ seed_make_exception(exception, "ArgumentError", mes);
+ return JSValueMakeNull(eng->context);
+ }
gchar * buf = seed_value_to_string(arguments[0]);
printf("%s\n", buf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]