Skip to content

Commit

Permalink
Add test for #195
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Sep 13, 2017
1 parent ff4ec66 commit 0913101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/js/JSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,10 @@ function someOtherFunction() {
'"function"!=typeof/./&&"object"!=typeof Int8Array',
'"function"!=typeof/./&&"object"!=typeof Int8Array',
);
$tests[] = array(
'if (true || /^(https?:)?\/\//.test(\'xxx\')) alert(1);',
'if(!0||/^(https?:)?\/\//.test(\'xxx\'))alert(1)',
);

// known minified files to help doublecheck changes in places not yet
// anticipated in these tests
Expand Down

0 comments on commit 0913101

Please sign in to comment.