Merge pull request #262 from smikes/object-strict-pr2

Candidate fix of empty catch{}
This commit is contained in:
Brian Terlson 2015-05-07 13:00:47 -07:00
commit 3218458c25
1 changed files with 10 additions and 3 deletions

View File

@ -49,16 +49,23 @@ verifyNotWritable(teamMeeting, "conferenceCall", "nocheck");
try {
teamMeeting.name = "IE Team Meeting";
} catch (e) {}
} catch (e) {
assert(e instanceof TypeError);
}
try {
var dateObj = new Date("10/31/2010 08:00");
teamMeeting.startTime = dateObj;
} catch (e) {}
} catch (e) {
assert(e instanceof TypeError);
}
try {
teamMeeting.conferenceCall = "4255551212";
} catch (e) {}
} catch (e) {
assert(e instanceof TypeError);
}
assert(!teamMeeting.hasOwnProperty("name"));
assert(!teamMeeting.hasOwnProperty("startTime"));