Squash a deprecation warning

'report' is deprecated, and 'emitWarning' can be entirely replaced by 'reportWarning'