Add read-only state property for Promise

Resolving a resolved promise throws an exception when has('debug') is
true.

[ci skip]