Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Jul 10, 2015
1 parent f922f4d commit 46b09a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -13,6 +13,14 @@ require("harmonize")();
...
```

If your code uses syntax not supported by the host without --harmony flag, put it in a different file, requireing it:

```js
require("harmonize")();
var other = require("./somethingUsingGenerators.js")
other();
```

License
-------
Apache License, Version 2.0
2 changes: 1 addition & 1 deletion harmonize.js
Expand Up @@ -40,7 +40,7 @@ module.exports = function(features) {

if (Array.isArray(features)) {
for (var i=0; i<features.length; ++i)
features[i] = "--" + features[i].replace(/^\-+/, "");
features[i] = "--" + (""+features[i]).replace(/^\-+/, "");
var p = features.indexOf("--harmony-proxies");
if (p >= 0)
features.splice(p, 1);
Expand Down

0 comments on commit 46b09a7

Please sign in to comment.