feature/support more prototype features #466
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At the moment, it seems to me that fuzzilli implements read and write operations on the
__proto__
property , and does not implement delete operations on it.In addition, in practical use, the
__proto__
property points to a complete object literal. It is often necessary to perform more granular operations, such as addition, deletion, or modification, on this object (where modification and addition share the same syntax). Below are examples of each operation :obj.__proto__.a = 1
x = obj.__proto__.a
delete obj.__proto__.a
Similarly, the implementation of the constructor's prototype is missing, as exemplified by the following:
Class.prototype = {}
obj = Class.prototype
delete Class.prototype
More granular property manipulation, for example, is as follows:
Class.prototype.a = 1
x = Class.prototype.a
delete Class.prototype.a
So here we add some corresponding codeGenerators to cover the above scenarios.