ensure getPrototypeOf is defined in old browsers