This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The parameter isEnabled is invalid.
Description
When the enableLeakWatcher function is called, the invalid parameter isEnabled is input.
Possible Causes
The type of isEnabled is incorrect.
Mandatory parameters are not specified.
Solution
Ensure that the type of isEnabled is correct.
Error Message
The parameter config is invalid.
Description
When the enableLeakWatcher function is called, the invalid parameter config is input.
Possible Causes
The type of config is incorrect.
Mandatory parameters are not specified.
Parameter verification failed. This parameter is an array of strings. The array must contain one or more of XComponent, NodeContainer, Window, CustomComponent, and Ability.
Solution
Ensure that the type of config is correct.
Error Message
The parameter callback is invalid.
Description
When the enableLeakWatcher function is called, the invalid parameter callback is input.
Possible Causes
The type of the input parameter callback is incorrect.
Mandatory parameters are not specified.
Parameter verification failed. The input parameter of the callback function is an array of two string elements.
Solution
Ensure that the type of callback is correct. The input parameter of the callback function is an array of two strings.
Index 0 is the leak list file name with the suffix .jsleaklist; index 1 is the virtual machine memory snapshot file name with the suffix .rawheap.