mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Merge pull request #262 from smikes/object-strict-pr2
Candidate fix of empty catch{}
This commit is contained in:
commit
3218458c25
@ -49,16 +49,23 @@ verifyNotWritable(teamMeeting, "conferenceCall", "nocheck");
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
teamMeeting.name = "IE Team Meeting";
|
teamMeeting.name = "IE Team Meeting";
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
assert(e instanceof TypeError);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var dateObj = new Date("10/31/2010 08:00");
|
var dateObj = new Date("10/31/2010 08:00");
|
||||||
teamMeeting.startTime = dateObj;
|
teamMeeting.startTime = dateObj;
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
assert(e instanceof TypeError);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
teamMeeting.conferenceCall = "4255551212";
|
teamMeeting.conferenceCall = "4255551212";
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
assert(e instanceof TypeError);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
assert(!teamMeeting.hasOwnProperty("name"));
|
assert(!teamMeeting.hasOwnProperty("name"));
|
||||||
assert(!teamMeeting.hasOwnProperty("startTime"));
|
assert(!teamMeeting.hasOwnProperty("startTime"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user