Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target node versions do not support Object.assign #52

Open
franza opened this issue Jun 8, 2017 · 1 comment
Open

Target node versions do not support Object.assign #52

franza opened this issue Jun 8, 2017 · 1 comment

Comments

@franza
Copy link

franza commented Jun 8, 2017

Target node versions include the old ones which do not support ES2015 stuff like Object.assign:

  "engines": {
    "node": ">= 0.10.5"
  },

For example, here Object.assign is used here for example:

var newOptions = Object.assign({}, options)

          var newOptions = Object.assign({}, options)
          newOptions.ignoreType = true
          var moreResults = files(statPath, type, subloop, newOptions);

In NodeJS v0.10 it throws an error because Object.assign does not exist yet.

@AckerApple
Copy link
Contributor

I forked this project long ago and it's in use by many. I just published to npm. Give it a try

https://www.npmjs.com/package/path-reader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants