exception when trying to tame feral objects http://codereview.appspot.com/4411043
exception when trying to tame feral objects
http://codereview.appspot.com/4411043

tame(o) in some cases will throw an exception
  "Cannot read property 'IS_TAMED_CTOR___' of undefined"

the case I'm running into is tame(f=feralframe.window) on Chrome
tame(f) does
  var ctor = directConstructor(f)
  tamePreviouslyConstructedObject(f, ctor)

directConstructor(f) returns f.constructor, which is DOMWindow

tamePreviouslyConstructedObject(f, ctor) does
  var tc = tame(ctor)
  if (tc.IS_TAMED_CTOR___) ...
which throws because the feral DOMWindow constructor tames to undefined.

so... I haven't figured out yet why we're calling tame(feralframe.window)
rather than tme(tamingframe.window); this is something that only happens
on Chrome.

but it seems to me that tame() should return undefined rather than
throwing an exception, to be consistent with tame's general contract.

R=ihab.awad@gmail.com


git-svn-id: eb21526166532bd3afc2c1499c0cf105ce815f5a@4442 360991c0-9f3b-0410-ba87-8b362a00edf4

cepm-nate/caja,wishabi/caja-1,wishabi/caja-1,jasvir/caja,googlearchive/caja,initaldk/caja,initaldk/caja,initaldk/caja,jasvir/caja,cepm-nate/caja,cepm-nate/caja,jasvir/caja,googlearchive/caja,cepm-nate/caja,initaldk/caja,jasvir/caja,wishabi/caja-1,googlearchive/caja,googlearchive/caja,wishabi/caja-1,wishabi/caja-1,googlearchive/caja,wishabi/caja-1,cepm-nate/caja,initaldk/caja,googlearchive/caja,cepm-nate/caja,initaldk/caja,jasvir/caja,jasvir/caja