Skip to content

Commit cd54550

Browse files
committed
Merge pull request liammclennan#14 from facto/master
fixed assertion in about_functions_and_closure.js
2 parents dc809f3 + 3acbbbb commit cd54550

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

topics/about_functions_and_closure.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ test("self invoking functions", function() {
2525
(function(pv) {
2626
var secretValue = "password";
2727
equals(pv, __, 'what is the value of pv?');
28-
equals(typeof(secretValue), "__", "is secret value available in this context?");
29-
equals(typeof(pv), "__", "is public value available in this context?");
28+
equals(typeof(secretValue), "__", "is secretValue available in this context?");
29+
equals(typeof(publicValue), "__", "is publicValue available in this context?");
3030
})(publicValue);
3131

32-
equals(typeof(secretValue), "__", "is secret value available in this context?");
33-
equals(typeof(publicValue), "__", "is public value available in this context?");
32+
equals(typeof(secretValue), "__", "is secretValue available in this context?");
33+
equals(typeof(publicValue), "__", "is publicValue available in this context?");
3434
});
3535

3636
test("arguments array", function() {

0 commit comments

Comments
 (0)