Print this page
XXX review feedback from keith
XXX rework to avoid changing api
XXX well, it works now...

Split Close
Expand all
Collapse all
          --- old/./v8plus_objectwrap.cc
          +++ new/./v8plus_objectwrap.cc
↓ open down ↓ 92 lines elided ↑ open up ↑
  93   93                              v8::String::NewSymbol(mdp->md_name), fh);
  94   94                  }
  95   95  
  96   96                  _constructor =
  97   97                      v8::Persistent<v8::Function>::New(tpl->GetFunction());
  98   98  
  99   99                  target->Set(v8::String::NewSymbol(v8plus_js_factory_name),
 100  100                      v8::FunctionTemplate::New(
 101  101                      v8plus::ObjectWrap::cons)->GetFunction());
 102  102          }
      103 +
      104 +        v8plus_crossthread_init();
 103  105  }
 104  106  
 105  107  v8::Handle<v8::Value>
 106  108  v8plus::ObjectWrap::_new(const v8::Arguments &args)
 107  109  {
 108  110          v8::HandleScope scope;
 109  111          v8plus::ObjectWrap *op = new v8plus::ObjectWrap();
 110  112          nvlist_t *c_excp;
 111  113          nvlist_t *c_args;
 112  114  
↓ open down ↓ 207 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX