mirror of https://github.com/tc39/test262.git
Made exception type checking looser: window.onerror isn't spec'ed to give us the
exact error type, but we should get the '.message' property.
This commit is contained in:
parent
cf22b0c733
commit
d5bf95c628
|
@ -22,7 +22,8 @@
|
|||
|
||||
//An exception is expected
|
||||
if (testDescrip.negative !== undefined) {
|
||||
testDescrip.negative = testDescrip.negative !== "" ? testDescrip.negative : ".";
|
||||
//TODO - come up with a generic way of catching the error type from window.onerror
|
||||
testDescrip.negative = testDescrip.negative === "NotEarlyError" ? testDescrip.negative : ".";
|
||||
if (window.iframeError === undefined) { //no exception was thrown
|
||||
testRun(testDescrip.id, testDescrip.path, testDescrip.description, testDescrip.code,
|
||||
'fail',
|
||||
|
|
Loading…
Reference in New Issue