status-go/geth/jail/internal
Pedro Pombeiro 2993dcc3db
Fix a couple race conditions in tests (#689)
* Fix race condition on `LoopSuite`
* Fix race condition in the access to a Otto.Value in tests (quick fix, need to improve approach in the future)
2018-02-21 13:18:32 +01:00
..
fetch Change Loop API to prevent it from accepting tasks when the loop is closed #415 (#448) 2017-12-28 22:50:36 +02:00
loop Fix a couple race conditions in tests (#689) 2018-02-21 13:18:32 +01:00
process Fix make lint warnings (#417) 2017-10-20 12:06:22 +03:00
promise Refactor jail part 2 (#401) 2017-11-07 12:36:42 -05:00
timers Make gas linter happy (#544) 2018-01-17 17:46:21 +01:00
vm Fix a couple race conditions in tests (#689) 2018-02-21 13:18:32 +01:00
LICENSE.md Add FetchAPI support and fix loop race [upd] #289 (#293) 2017-09-08 14:55:17 +03:00
README.md Add FetchAPI support and fix loop race [upd] #289 (#293) 2017-09-08 14:55:17 +03:00
main.go Add FetchAPI support and fix loop race [upd] #289 (#293) 2017-09-08 14:55:17 +03:00

README.md

ottoext

Originally based on github.com/deoxxa/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.