зеркало из https://github.com/mozilla/pjs.git
remove extra debugging code
This commit is contained in:
Родитель
cab2dc37d6
Коммит
deffed80d2
|
@ -91,7 +91,7 @@ bool Membrane::IsCrossThreadWrapper(const JSObject *wrapper) {
|
|||
}
|
||||
|
||||
JSBool Membrane::put(Value key, Value value) {
|
||||
//TODO(fadi): restore rooter, or translate it into a JSArray.
|
||||
//TODO: restore rooter, or translate it into a JSArray.
|
||||
// if (_rooter == NULL) {
|
||||
// _rooter = ProxyRooter::create(_childCx, 128, NULL);
|
||||
// if (!_rooter)
|
||||
|
@ -433,11 +433,9 @@ bool Membrane::wrap(Value *vp, bool isArg) {
|
|||
|
||||
JSObject *wrapper = this->_proxyRack->getProxyObject(cx, ObjectValue(*obj),
|
||||
proto, _childGlobal, obj->isCallable() ? obj : NULL, NULL);
|
||||
//// JSObject *wrapper = NewProxyObject(cx, this, ObjectValue(*obj), proto,
|
||||
//// _childGlobal, obj->isCallable() ? obj : NULL, NULL);
|
||||
//
|
||||
//// increment the refcount of the proxy handler.
|
||||
////XXX increment the refcount of the proxy handler.
|
||||
//// _refCount++;
|
||||
|
||||
vp->setObject(*wrapper);
|
||||
DEBUG("Wrapping obj %p to %p for %p->%p\n", obj, wrapper, _parentCx, _childCx);
|
||||
return put(GetProxyPrivate(wrapper), *vp);
|
||||
|
|
|
@ -899,11 +899,8 @@ Runner *Runner::create(ThreadPool *aThreadPool, int anIndex) {
|
|||
JSObject *global = JS_NewGlobalObject(
|
||||
/*JSContext *cx: */cx,
|
||||
/*JSClass *clasp: */&Global::jsClass, /*JSPrincipals*/NULL);
|
||||
// global->dump();
|
||||
// fprintf(stderr,"\nbefore\n");
|
||||
if (!JS_InitStandardClasses(cx, global))
|
||||
return NULL;
|
||||
// global->dump();
|
||||
if (!ChildTaskHandle::initClass(cx, global))
|
||||
return NULL;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче