exit
phantom.exit(returnValue) {void}
Exits the program with the specified return value. If no return value is specified, it is set to 0.
Examples
if (somethingIsWrong) {
phantom.exit(1);
} else {
phantom.exit(0);
}
phantom.exit(returnValue) {void}
Exits the program with the specified return value. If no return value is specified, it is set to 0.
if (somethingIsWrong) {
phantom.exit(1);
} else {
phantom.exit(0);
}