Test case details

Preparation Code

<script>   function tryCatch(undef) {     try {       return undef.prop;     } catch (ex) {       return null;     }   }   function ifCheck(undef) {     if (undef.prop != undefined) {       return undef.prop;     } else {       return null;     }   } </script>

Test cases

Test #1

tryCatch({'uprop':1});

Test #2

ifCheck({'uprop':1});