b50c46caa8
* Commit initial change for settimeout/setinterval * Add initial tests for jail setTimeout/setInterval * Add ottoext dependency * Add fetch jail test with function * Add dependencies of fetch from ottoext * Refactor with regards to PR review * Refactor with regards to PR review * Fix syntax errors * Fix missing return statement |
||
---|---|---|
.. | ||
cmd/ottoext | ||
fetch | ||
loop | ||
process | ||
promise | ||
repl | ||
timers | ||
LICENSE.md | ||
README.md | ||
main.go |
README.md
ottoext
Overview
This package contains some extensions for the otto JavaScript interpreter. The
most important extension is a generic event loop based on code from natto. The
other extensions are setTimeout
and setInterval
support, Promise
support
(via native-promise-only
, MIT license), and fetch
support.
Examples
Take a look at the test files to see how the extensions work.
License
3-clause BSD. A copy is included with the source.