 	$tryCatchFn = null
 	$tryErr = { e: null }
 	$noop = {}
-	$function = 'function'
-	$object = 'object'
-	$isNode = typeof process == $object
+
+	isObject = (obj) ->
+		typeof obj == 'object'
+
+	isFunction = (obj) ->
+		typeof obj == 'function'
 
 	###*
 	 * Release the specified key of an object.

	 * ```
	###
	@onUnhandledRejection: (reason, p) ->
		return if typeof console != $object

		$info = 'Unhandled Rejection:'


	###
	addHandler = (p1, p2, onFulfilled, onRejected) ->
		# 2.2.1
		if isFunction onFulfilled
			p2._onFulfilled = onFulfilled
		if isFunction onRejected
			p2._onRejected = onRejected

		p1[$hasUnhandledRejection] = false
