Illegal return statement
Opened this issue · 4 comments
Deleted user commented
when their is return false statement then it show Illegal return statement
tholu commented
Do you have an example?
Deleted user commented
require '../src/Packer.php';
error_reporting(E_ALL);
$js = ' var i = 5;if(i == 5){document.getElementById("demo").innerHTML = "Hello World"; return false;}alert("hello");';
$packer = new Tholu\Packer\Packer($js, 62, true, true);
$packed_js = $packer->pack();
echo $packed_js;
tholu commented
Your example is incomplete, you are missing the function definition from which you are returning. Perhaps this is also the problem?
tholu commented
Closed because of inactivity.