Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 698 Bytes

identifier_deletion.md

File metadata and controls

28 lines (21 loc) · 698 Bytes

Feature - Identifier Deletion

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.