Make compatible with latest tern.