Identifiers can be deleted from V8.
eval(''); // eval() is deleted.
Function(''); // Function() is deleted.
WebAssemble(''); // WebAssemble() is deleted.
The following example shows how to update the to be deleted identifier list.
JavetSanitizerOptions options = JavetSanitizerOptions.Default.toClone()
options.getToBeDeletedIdentifierList().remove("WebAssemble");
options.getToBeDeletedIdentifierList().add("Promise");
options.seal();
The default to be deleted identifier list is as follows:
eval
Function
WebAssembly
Please refer to the tutorial for more details.