Refs #482: function name is read only in gecko
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -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"); | ... | ... |
-
Please register or sign in to post a comment