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) { ...@@ -1455,7 +1455,8 @@ Casper.prototype.resourceExists = function resourceExists(test) {
1455 break; 1455 break;
1456 case "function": 1456 case "function":
1457 testFn = test; 1457 testFn = test;
1458 testFn.name = "_testResourceExists_Function"; 1458 if (phantom.casperEngine !== "slimerjs")
1459 testFn.name = "_testResourceExists_Function";
1459 break; 1460 break;
1460 default: 1461 default:
1461 throw new CasperError("Invalid type"); 1462 throw new CasperError("Invalid type");
......