> I know this is your personal lib, so I won't say anything about code style, but I guess you should add a new line here.
Also, because this is will end up in Firefox code base, I was wondering if we have a policy about 3rd party js code that we integrate in Firefox?

We have decided not to change method lib that also had different style so I think we can keep it as is. In general as long as license is compatible with MPL we can use third party libs.