diff nodejs/coord.cc @ 695:763a4e2bbd85

Return the value of ojbject to fix the crash issue
author wycc
date Mon, 09 Aug 2010 16:40:57 +0800
parents b346e4699e55
children 4916c3a3fe3c
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.