3
Say I raise a Promise to javascript:
var a = new Promise(function(success, error){ { sucess("Sucesso!"); })
My variable a receives the following properties:
Promise {[[PromiseStatus]]: "resolved", [[PromiseValue]]: "Sucesso!"}
However, note that they have double brackets around them. I would like to know how to get the value of properties that have this format.
Can give a larger context of how this is being used?
– Maniero
@bigown I was doing a dojo that couldn’t change a script and had an array of Promises, wanted a way to identify the Promises before they were solved
– LF Ziron
@Lfziron my answer solved your question?
– Sergio
@Sergio perfectly, thank you
– LF Ziron