saikojosh / Object-Assign-Deep

Like Object.assign(), but deeper.
69 stars 13 forks source link

Running in lower version node will error #3

Closed zhongzhi107 closed 7 years ago

zhongzhi107 commented 7 years ago

node -v v 4.2.1

The reason is that the default function defaults are not supported in the lower version

The error message is as follows:

` /node_modules/object-assign-deep/objectAssignDeep.js:77

function executeDeepMerge (target, _objects = [], _options = {}) {

                                        ^

SyntaxError: Unexpected token = `

saikojosh commented 7 years ago

Hi @zhongzhi107, yes we only support Node 6 and newer. You can check the supported versions in the "engines" property of package.json.