-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support "rename -i.bak" for inplace update
- Loading branch information
Claus Reinke
committed
Jun 16, 2012
1 parent
491b6da
commit 3d76dbb
Showing
9 changed files
with
136 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
sample.js -text | ||
tags -text | ||
*.stdout -text | ||
*.stderr -text | ||
sample.js -text | ||
sample-work.js -text | ||
sample-work.js.bak -text | ||
tags -text | ||
*.stdout -text | ||
*.stderr -text |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
null |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
WARNING! hoisting var declaration over catch of same name: e | ||
{ start: { line: 20, column: 8 }, | ||
end: { line: 20, column: 16 } } | ||
WARNING! hoisting function declaration over catch of same name: f | ||
{ start: { line: 28, column: 4 }, | ||
end: { line: 28, column: 24 } } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.bak |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
function log_it(x) { } | ||
var z; | ||
function A() { | ||
var x; | ||
var y = [x,function(x) { | ||
log_it(z.a); | ||
function A() { | ||
log_it(z.b); | ||
var x; | ||
var z; | ||
return x; | ||
} | ||
return A(x); | ||
}]; | ||
var z = [function(x) { return (function(x) { return x; }(function(x) { return x; }))(x); },x]; | ||
|
||
try { | ||
throw "hi"; | ||
} catch (e) { | ||
var e = "ho"; // double scope binding, initialization!=declaration:-( | ||
log_it(e); | ||
} | ||
log_it(e); | ||
|
||
try { | ||
throw "hi"; | ||
} catch (f) { | ||
function f(){log_it(f)} // yet another scope border case, non-standard | ||
log_it(f); | ||
} | ||
log_it(f); | ||
return x; | ||
} | ||
A(); | ||
function outer(x,y) { return function(a,b) { | ||
return [x,y,a,b]; | ||
}} | ||
exports.none = null; | ||
try { | ||
throw "hi"; | ||
} catch (f) { | ||
var ff = "hu"; | ||
log_it(f); | ||
} | ||
log_it(ff); | ||
function require(dependency) { | ||
return require.cache[dependency].dependency // computed vs non-computed properties | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
function log(x) { } | ||
var z; | ||
function A() { | ||
var x; | ||
var y = [x,function(x) { | ||
log(z.a); | ||
function A() { | ||
log(z.b); | ||
var x; | ||
var z; | ||
return x; | ||
} | ||
return A(x); | ||
}]; | ||
var z = [function(x) { return (function(x) { return x; }(function(x) { return x; }))(x); },x]; | ||
|
||
try { | ||
throw "hi"; | ||
} catch (e) { | ||
var e = "ho"; // double scope binding, initialization!=declaration:-( | ||
log(e); | ||
} | ||
log(e); | ||
|
||
try { | ||
throw "hi"; | ||
} catch (f) { | ||
function f(){log(f)} // yet another scope border case, non-standard | ||
log(f); | ||
} | ||
log(f); | ||
return x; | ||
} | ||
A(); | ||
function outer(x,y) { return function(a,b) { | ||
return [x,y,a,b]; | ||
}} | ||
exports.none = null; | ||
try { | ||
throw "hi"; | ||
} catch (f) { | ||
var ff = "hu"; | ||
log(f); | ||
} | ||
log(ff); | ||
function require(dependency) { | ||
return require.cache[dependency].dependency // computed vs non-computed properties | ||
} |
This file contains 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