 	 * ```
 	###
 	@onUnhandledRejection: (reason, p) ->
-		return if typeof console != $object
+		return if not isObject console
 
 		$info = 'Unhandled Rejection:'
 


		# 2.3.2
		# 2.3.3
		type = typeof x
		if x != null and (type == $function or type == $object)
			# 2.3.2.1
			xthen = genTryCatcher(getThen) x


				settlePromise p, $rejected, xthen.e
				return

			if isFunction xthen
				if isLongStackTrace
					p[$prePromise] = x

