Changes between Version 1 and Version 2 of Ticket #13759, comment 6
- Timestamp:
- Apr 10, 2013, 12:10:28 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13759, comment 6
v1 v2 6 6 {{{ 7 7 (function ( undefined ) { 8 console.log( '0: ' + undefined);8 console.log( '0: ' + undefined ); 9 9 })( 0 ); // => 0 10 10 11 11 (function ( undefined ) { 12 12 'use strict'; 13 console.log( '1: ' + undefined);13 console.log( '1: ' + undefined ); 14 14 })( 1 ); // => 1 15 15 16 16 (function () { 17 17 undefined = 2; 18 console.log( '2: ' + undefined);18 console.log( '2: ' + undefined ); 19 19 })(); // => 2 20 20 … … 23 23 try { 24 24 undefined = 3; 25 console.log( '3: ' + undefined);25 console.log( '3: ' + undefined ); 26 26 } catch (e) { 27 console.log( '3: ' + e);27 console.log( '3: ' + e ); 28 28 } 29 29 })(); // => TypeError … … 31 31 (function () { 32 32 var undefined = 4; 33 console.log( '4: ' + undefined);33 console.log( '4: ' + undefined ); 34 34 })(); // => 4 35 35 … … 37 37 'use strict'; 38 38 var undefined = 5; 39 console.log( '5: ' + undefined);39 console.log( '5: ' + undefined ); 40 40 })(); // => 5 41 41 42 42 var undefined = 6; 43 43 (function () { 44 console.log( '6: ' + undefined);44 console.log( '6: ' + undefined ); 45 45 })(); // => undefined 46 46 … … 48 48 (function () { 49 49 'use strict'; 50 console.log( '7: ' + undefined);50 console.log( '7: ' + undefined ); 51 51 })(); // => undefined 52 52 }}}