assaf/zombie — Issue #271: eval originator and getScript
Author: vainrobot
Created: 2012-01-25 18:44:31+00:00
State: open

if(!window.General){
$.getScript("/javascripts/general.js", function(data, status){
//
}).error(function(obj1, obj2Str, obj3){
console.log("We are handling an error in template jade: " + obj1 + " and " + obj2Str + " and "+ obj3);
});

I do not get an error when running this page normally, however when using a zombie test, I get this output.

I get this:

We are handling an error in template jade: [object Object] and parsererror and EvalError: The "this" object passed to eval must be the global object from which eval originated.