You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem trying to use this on my 2nd laptop (which is running El Capitan, not Sierra). Turns out the version of JSContext on older OSXs doesn't support a bunch of things used here - const / let (which we can compile I guess), but also Promise (which we can't).
Probably a good idea to throw a descriptive error when the user is trying to run it on a platform without Promise?
@darknoon gave me this snippet to get JSC version - need to remember to run it this evening on my 2nd Mac to find out what our range is :)
If I'm not mistaken, setImmediate is not available in older JSContext, hence the inability to polyfill. Could possibly fall back on setTimeout, but performance is quite bad.
I ran into a problem trying to use this on my 2nd laptop (which is running El Capitan, not Sierra). Turns out the version of JSContext on older OSXs doesn't support a bunch of things used here -
const
/let
(which we can compile I guess), but alsoPromise
(which we can't).Probably a good idea to throw a descriptive error when the user is trying to run it on a platform without
Promise
?@darknoon gave me this snippet to get JSC version - need to remember to run it this evening on my 2nd Mac to find out what our range is :)
The text was updated successfully, but these errors were encountered: