lib/capybara/poltergeist/client/compiled/agent.js in poltergeist-0.5.0 vs lib/capybara/poltergeist/client/compiled/agent.js in poltergeist-0.6.0
- old
+ new
@@ -6,18 +6,12 @@
this.nodes = {};
this.windows = [];
this.pushWindow(window);
}
PoltergeistAgent.prototype.externalCall = function(name, arguments) {
- try {
- return {
- value: this[name].apply(this, arguments)
- };
- } catch (error) {
- return {
- error: error.toString()
- };
- }
+ return {
+ value: this[name].apply(this, arguments)
+ };
};
PoltergeistAgent.prototype.pushWindow = function(new_window) {
this.windows.push(new_window);
this.window = new_window;
this.document = this.window.document;
\ No newline at end of file