pearsonjohn / js-addin

Automatically exported from code.google.com/p/js-addin
0 stars 0 forks source link

qunitjs instruction throws cause a false positive error #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please see this site: http://api.qunitjs.com/throws/

The throws instruction is interpreted as an error by jsparser in visual studio 
2010 :

test( "throws", function() {
function CustomError( message ) {
this.message = message;
}
CustomError.prototype.toString = function() {
return this.message;
};
throws(
function() {
throw "error"
},
"throws with just a message, no expected"
);
throws(
function() {
throw new CustomError();
},
CustomError,
"raised error is an instance of CustomError"
);
throws(
function() {
throw new CustomError("some error description");
},
/description/,
"raised error message contains 'description'"
);
});

Original issue reported on code.google.com by jeanp...@gmail.com on 20 Feb 2014 at 8:43

GoogleCodeExporter commented 9 years ago
I am having the same issue w/ Visual Studio 2013

Original comment by dudsm...@gmail.com on 8 Sep 2014 at 8:16