changeset 695:763a4e2bbd85

Return the value of ojbject to fix the crash issue
author wycc
date Mon, 09 Aug 2010 16:40:57 +0800
parents 86c6ebf1de25
children f46a0771fd30
files nodejs/coord.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/coord.cc	Sat Aug 07 23:00:16 2010 +0800
+++ b/nodejs/coord.cc	Mon Aug 09 16:40:57 2010 +0800
@@ -88,7 +88,7 @@
 /*! \brief This function used by \ref xnjsmb_mb_rt to wrap coord object.
  */
 Handle<Value> export_xnjsmb_auto_coord_new(coord_t *coord) {
-    xnjsmb_auto_coord_new(coord);
+    return xnjsmb_auto_coord_new(coord);
 }
 
 /*! \brief Initialize Javascript object for root coord of a runtime.