Skip to content
Snippets Groups Projects
Commit aba414ca authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

Documentation: $262.agent.report() is expected to convert its argument to a string.

Fixes #1640
Closes #1652
parent 24f86172
No related branches found
No related tags found
No related merge requests found
...@@ -86,9 +86,8 @@ properties of the global scope prior to test execution. ...@@ -86,9 +86,8 @@ properties of the global scope prior to test execution.
an Int32. This function may return before a broadcast is received an Int32. This function may return before a broadcast is received
(eg to return to an event loop to await a message) and no code should (eg to return to an event loop to await a message) and no code should
follow the call to this function. follow the call to this function.
- **`report`** - a function that takes a string and places it in a - **`report`** - a function that accepts a single "message" argument,
transmit queue whence the parent will retrieve it. Messages which is converted to a string\* and placed in a transmit queue whence the parent will retrieve it. Messages should be short. (\* Note that string conversion has been implicit since the introduction of this host API, but is now explicit.)
should be short.
- **`sleep`** - a function that takes a millisecond argument and - **`sleep`** - a function that takes a millisecond argument and
sleeps the agent for approximately that duration. sleeps the agent for approximately that duration.
- **`leaving`** - a function that signals that the agent is done and - **`leaving`** - a function that signals that the agent is done and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment