This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enclosingScope () { | |
var b; | |
function inner (def) { | |
def(); | |
} | |
var a = 2; | |
} | |
// After hoisting due to compilation, the above changes to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
try { | |
undefined(); | |
} catch (err) { | |
var a = 5; | |
console.log(a); // 5 | |
console.log(err); // TypeError: undefined is not a function(…) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$PATH_TO_PROVISIONING_PROFILE = "" | |
$DEVELOPER_TEAM_ID = "" | |
xcodebuild PROVISIONING_PROFILE="$PATH_TO_PROVISIONING_PROFILE" CODE_SIGN_IDENTITY="$DEVELOPER_TEAM_ID" |
NewerOlder