 	$resolved = 1
 	$pending = 2
 
-	$unhandledRejection = -1
+	$hasUnhandledRejection = -1
 
 	# These are some symbols. They won't be used to store data.
 	$circularChain = 'promise_circular_chain'

		if typeof onFulfilled == $function
			p2._onFulfilled = onFulfilled
		if typeof onRejected == $function
			p1[$unhandledRejection] = false
			p2._onRejected = onRejected

		# 2.2.6

		return

	scheduleUnhandledRejection = genScheduler 100, (p) ->
		if p[$hasUnhandledRejection]
			Yaku.onUnhandledRejection p._value
		return

