xcatliu / react-ie8

Make your React app work in IE8
http://react-ie8.xcatliu.com/
997 stars 162 forks source link

抛出异常并未接住的错误 #18

Closed titanew closed 8 years ago

titanew commented 8 years ago
throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);

这个错误怎么解决的,ie8下

xcatliu commented 8 years ago

是不是代码里面有 Object.defineProperty

参考一下这个: https://github.com/facebook/react/issues/3682 https://github.com/xcatliu/react-ie8/issues/2

zuojj commented 7 years ago

这个问题解决了吗?

if (!supportsAccessors && (hasGetter || hasSetter)) {
    throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
}

引发了异常但未捕获!!