We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
刚新建的一个express工程,加载了express-art-template,由于还没有设置任何routes,所在我在直接访问时肯定会报错,走进404的状态当中. 但这时,代码就会报
express-art-template
TypeError: target.hasOwnProperty is not a function
debug跟下来,发现是在递归遍历对象时,出现了一个对像的__proto__ = null的情况,这个对像应该是一个Error对像,不清楚为什么他的__proto__为什么会是null.
推荐你们把这里的target.hasOwnProperty修改成Object.hasOwnProperty.call(target, index),以避免这一错误的发生.
target.hasOwnProperty
Object.hasOwnProperty.call(target, index)
The text was updated successfully, but these errors were encountered:
fix bug #483
f0fc2a5
已经修复问题,非常感谢!
Sorry, something went wrong.
@aui #459 这个issue 应该也要关闭掉了吧
No branches or pull requests
刚新建的一个express工程,加载了
express-art-template
,由于还没有设置任何routes,所在我在直接访问时肯定会报错,走进404的状态当中.但这时,代码就会报
debug跟下来,发现是在递归遍历对象时,出现了一个对像的__proto__ = null的情况,这个对像应该是一个Error对像,不清楚为什么他的__proto__为什么会是null.
推荐你们把这里的
target.hasOwnProperty
修改成Object.hasOwnProperty.call(target, index)
,以避免这一错误的发生.The text was updated successfully, but these errors were encountered: