Mercurial > MadButterfly
changeset 669:eeea1b593a2f
Add handle scope for function and method generated
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 05 Aug 2010 09:38:07 +0800 |
parents | 916dc9723086 |
children | f0b4fbcd1c51 |
files | tools/gen_v8_binding.m4 |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gen_v8_binding.m4 Wed Aug 04 22:07:13 2010 +0800 +++ b/tools/gen_v8_binding.m4 Thu Aug 05 09:38:07 2010 +0800 @@ -310,6 +310,7 @@ dnl static Handle<Value> PROJ_PREFIX[]STRUCT_NAME[]_$][1(const Arguments &args) { + HandleScope scope; int i; int argc = args.Length(); Handle<Object> self = args.This(); @@ -342,6 +343,7 @@ ifdef([MOD], [ MOD[](self, _ret_val); ])dnl + scope.Close(_ret_val); return _ret_val; ])dnl } @@ -522,6 +524,7 @@ */ static Handle<Value> PROJ_PREFIX[]$1(const Arguments &args) { + HandleScope scope; int argc = args.Length(); int i; const char *_err = NULL; @@ -553,6 +556,7 @@ ifdef([MOD], [ MOD[](self, _ret_val); ])dnl + scope.Close(_ret_val); return _ret_val; ])dnl }