Replacement for chrome.Port prototype
My extension, sharkzapper was working in older versions of Google Chrome but stopped some time when Chrome 18 or 19 was released, due to my use of the chrome.Port.prototype property which no longer exists. I was previously using it to create an object which extended a chrome.Port via prototypical inheritance so I could log all messages in and out for debugging. The source code in particular of this portion is here.
Is there any other way to inherit from chrome.Port, or any other workaround I could use to get my extension working again?