Mercurial > MadButterfly
changeset 558:d61133da2845 Android_Skia
New MadButterfly runtime object install of calling function
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 06 Jun 2010 21:51:58 +0800 |
parents | 0ca8437a91fa |
children | ef078d7c57b4 |
files | nodejs/mbfly_njs.cc nodejs/testcase.js |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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<Value>
--- 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);