1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Note ES5 limitations

This commit is contained in:
Joshua Peek 2015-01-20 16:24:58 -08:00
parent 3d605e9e38
commit 1816df22d1

View file

@ -57,6 +57,13 @@ consistent interface.
For similar reasons as modules, not all runtimes guarantee a full JavaScript
event loop. So `setTimeout`, `setInterval` and other timers are not defined.
**Why can't I use ES5 features?**
Some runtimes like Node will implement many of the latest ES5 features. However
older stock runtimes like JSC on OSX and JScript on Windows may not. You should
only count on ES3 features being available. Prefer feature checking these APIs
rather than hard coding support for specific runtimes.
**Can I ExecJS be used to sandbox scripts?**
No, ExecJS shouldn't be used for any security related sandboxing. Since runtimes