Skip to content

Commit

Permalink
issue #303 - note about this === undefined at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed Nov 4, 2015
1 parent 8738f9f commit 7104974
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ You can also leverage interop with callback + errback API style:
var ok = fs.exists(__filename, _, _); // works
```

### Why is `this === undefined` at the top level of my module?

This is an incompatibility with streamline 0.x. It is due to the fact that babel enforces ES `strict` mode by default. You can get around it by blacklisting the `strict` plugin. This can be specified via `.streamline.json`. For example:

```json
{
"runtime": "callbacks",
"babel": {
"blacklist": ["strict"]
}
}
```

### I'm calling an async function with `!_` and I'm not getting a future back. What's wrong?

Expand Down

0 comments on commit 7104974

Please sign in to comment.