status-go/vendor/fknsrs.biz/p/ottoext
Ewetumo Alexander b50c46caa8 Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189
* 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
2017-07-13 18:04:47 +07:00
..
cmd/ottoext Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
fetch Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
loop Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
process Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
promise Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
repl Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
timers Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
LICENSE.md Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
README.md Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00
main.go Add SetTimeout/SetInterval to JailCell otto.Otto, closes #189 2017-07-13 18:04:47 +07:00

README.md

ottoext

GoDoc

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.