check that e.sourceURL is available before using it
This commit is contained in:
parent
04e2bc5f22
commit
c1dc86a329
@ -25,7 +25,7 @@ jasmine.Spec.prototype.getJHWSpecInformation = ->
|
|||||||
parts.join("||")
|
parts.join("||")
|
||||||
|
|
||||||
jasmine.Spec.prototype.fail = (e) ->
|
jasmine.Spec.prototype.fail = (e) ->
|
||||||
if e and window.CoffeeScriptToFilename
|
if e and e.sourceURL and window.CoffeeScriptToFilename
|
||||||
filename = e.sourceURL.split('/').pop()
|
filename = e.sourceURL.split('/').pop()
|
||||||
if realFilename = window.CoffeeScriptToFilename[filename]
|
if realFilename = window.CoffeeScriptToFilename[filename]
|
||||||
e = {
|
e = {
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
};
|
};
|
||||||
jasmine.Spec.prototype.fail = function(e) {
|
jasmine.Spec.prototype.fail = function(e) {
|
||||||
var expectationResult, filename, realFilename;
|
var expectationResult, filename, realFilename;
|
||||||
if (e && window.CoffeeScriptToFilename) {
|
if (e && e.sourceURL && window.CoffeeScriptToFilename) {
|
||||||
filename = e.sourceURL.split('/').pop();
|
filename = e.sourceURL.split('/').pop();
|
||||||
if (realFilename = window.CoffeeScriptToFilename[filename]) {
|
if (realFilename = window.CoffeeScriptToFilename[filename]) {
|
||||||
e = {
|
e = {
|
||||||
|
Loading…
Reference in New Issue
Block a user