Skip to content

Commit 4d82c98

Browse files
committed
Add additional info for require()
1 parent 77e4100 commit 4d82c98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ p.map(function (n) { return Math.pow(10, n) / factorial(n); }).reduce(add).then(
147147

148148
#### `require(state)`
149149
If you have state that you want to share between your main thread and the worker threads, this is how. Require
150-
takes either a string or a function. A string should point to a file name.
150+
takes either a string or a function. A string should point to a file name. Note that in order to
151+
use ```require``` with a file name as an argument, you have to provide the evalPath property in the options
152+
object.
151153

152154
*Example*
153155
```javascript

0 commit comments

Comments
 (0)