 	$resolved = 1
 	$pending = 2
 
-	$promiseStack = '_pStack'
+	$promiseTrace = '_pStack'
+	$settlerTrace = '_sStack'
 
 	# These are some symbols. They won't be used to store data.
 	$circularChain = 'promise_circular_chain'

		return if not isObject console

		hStack = '\n'
		if isLongStackTrace and p[$promiseStack]
			while p
				hStack += p[$promiseStack]
				p = p._pre

		format = (str) ->
			if typeof __filename == 'string'
				str.replace ///.+#{__filename}.+\n///g, ''
			else
				str

		stack = if reason
			if reason.stack
				format reason.stack
			else
				reason
		else
			reason

		console.error 'Unhandled Rejection:', stack, format(hStack)

	isLongStackTrace = false


	###
	constructor: (executor) ->
		if isLongStackTrace
			@[$promiseTrace] = genTraceInfo()

		return if executor == $noop

