# HG changeset patch # User Thinker K.F. Li # Date 1275832318 -28800 # Node ID d61133da284523d5f8109437c9b4da8c0400af2f # Parent 0ca8437a91fa7dc264b670524d1fbb0351c823e9 New MadButterfly runtime object install of calling function diff -r 0ca8437a91fa -r d61133da2845 nodejs/mbfly_njs.cc --- a/nodejs/mbfly_njs.cc Sun Jun 06 21:27:34 2010 +0800 +++ b/nodejs/mbfly_njs.cc Sun Jun 06 21:51:58 2010 +0800 @@ -50,6 +50,8 @@ self->Set(String::New("_njs_rt"), External::Wrap(rt)); X_njs_MB_init_handle_connection(rt); + + return Null(); } static Handle diff -r 0ca8437a91fa -r d61133da2845 nodejs/testcase.js --- a/nodejs/testcase.js Sun Jun 06 21:27:34 2010 +0800 +++ b/nodejs/testcase.js Sun Jun 06 21:51:58 2010 +0800 @@ -3,6 +3,6 @@ var sys = require("sys"); sys.puts(r); -var mb_rt = mbfly.mb_rt(":0.0", 300, 200); +var mb_rt = new mbfly.mb_rt(":0.0", 300, 200); setTimeout(function() { sys.puts("timeout"); }, 1000);