Commit 8139180a 8139180aaf5fddde1189b2d2b32b0194d5ce5e33 by Laurent Jouanneau

Refs #482: function name is read only in gecko

1 parent 00747d8d
......@@ -1455,7 +1455,8 @@ Casper.prototype.resourceExists = function resourceExists(test) {
break;
case "function":
testFn = test;
testFn.name = "_testResourceExists_Function";
if (phantom.casperEngine !== "slimerjs")
testFn.name = "_testResourceExists_Function";
break;
default:
throw new CasperError("Invalid type");
......