This repository was archived by the owner on May 30, 2023. It is now read-only.
This repository was archived by the owner on May 30, 2023. It is now read-only.
ReferenceError: Can't find variable: Promise #12401
Closed
Activity
JamesMGreene commentedon Jul 25, 2014
Native Promises are an extremely recent addition (I'm not even sure if it's officially standard yet), so this is not surprising whatsoever. Are there native Promises in your code/tests, or is the error coming from mocha-phantomjs?
liliakai commentedon Jul 25, 2014
They're in my code. Any plan to add support in the near future? Or do you know of any other headless browsers that have implemented them? I suppose I'll have to shim them into my test page otherwise.
Also, (and this is a separate issue, but) same question regarding support for Array-like objects in Function.prototype.apply.
piuccio commentedon Nov 18, 2014
+1 😄
Gowiem commentedon Dec 9, 2014
+1
gergely-ujvari commentedon Dec 10, 2014
+1
Aurifier commentedon Dec 18, 2014
👍
zzarcon commentedon Jan 5, 2015
@JamesMGreene some update about this? :)
zzarcon commentedon Jan 5, 2015
I ended using a simple workaround; adding this Promise Polyfill at the beginning of the tests, hope be util for you!
JamesMGreene commentedon Jan 5, 2015
Although the current
master
isn't quite where we hoped it would be, we are planning to release it asv2.0.0
on January 23rd (?) and work out the remaining kinks from there once we can all shift focus tov2.x
.JamesMGreene commentedon Jan 5, 2015
That said: I have not verified that the native
Promise
API is implemented inmaster
.vitallium commentedon Jan 5, 2015
PhantomJS 2 doesn't have native
Promise
API.fredck commentedon Feb 20, 2015
+1
Promise is available natively in all modern browsers except IEs (IE12 has it)... it's a must have!
MrJH commentedon Feb 25, 2015
+1
masi commentedon Mar 21, 2015
Node has Promises, ECMA6 will have them and notably SilmerJS has them already. The SlimerJS devs had the idea to make webpage.open to return a Promise which is IMHO a great improvement to the API.
48 remaining items