GitHub user fkysly opened a pull request:
https://github.com/apache/incubator-weex/pull/109
* [jsfm] use Object.seal to replace Object.freeze
`Object.freeze(Object.prototype)`
Freezing the Object.prototype causes the user cannot rewrite the normal
object's toString method, constructor method, etc. Some third-party common
libraries can not be used, and inheritance can not be achieved.
The reason is as followsï¼
[object-freeze-object-prototype-vs-reality](https://esdiscuss.org/topic/object-freeze-object-prototype-vs-reality)
The new way to use the seal method and set an error alert for each
attribute to achieve the effect of simulated freeze.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fkysly/incubator-weex 0.11-dev
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-weex/pull/109.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #109
----
commit 996bb89389ac9d7d368c85b67da7e9238cd3ee64
Author: fkysly <[email protected]>
Date: 2017-03-15T07:45:58Z
* [jsfm] use Object.seal to replace Object.freeze
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---