;modjewel.define("weinre/target/BrowserHacks", function(require, exports, module) { // Generated by CoffeeScript 1.8.0
var BrowserHacks;

BrowserHacks = function() {
  if (typeof document.addEventListener === "undefined") {
    alert("Oops. It seems the page runs in compatibility mode. Please fix it and try again.");
    return;
  }
  if (typeof window.Element === "undefined") {
    window.Element = function() {};
  }
  if (typeof window.Node === "undefined") {
    window.Node = function() {};
  }
  if (!Object.getPrototypeOf) {
    Object.getPrototypeOf = function(object) {
      if (!object.__proto__) {
        throw new Error("This vm does not support __proto__ and getPrototypeOf. Script requires any of them to operate correctly.");
      }
      return object.__proto__;
    };
  }
};

BrowserHacks();

});
