Implement alert() in StubParentContext