Permalink
Browse files

pv should be publicValue

  • Loading branch information...
facto committed Oct 23, 2011
1 parent dc809f3 commit 3acbbbbce803c18f4fabb4cc80f230d74f31f532
Showing with 4 additions and 4 deletions.
  1. +4 −4 topics/about_functions_and_closure.js
@@ -25,12 +25,12 @@ test("self invoking functions", function() {
(function(pv) {
var secretValue = "password";
equals(pv, __, 'what is the value of pv?');
- equals(typeof(secretValue), "__", "is secret value available in this context?");
- equals(typeof(pv), "__", "is public value available in this context?");
+ equals(typeof(secretValue), "__", "is secretValue available in this context?");
+ equals(typeof(publicValue), "__", "is publicValue available in this context?");
})(publicValue);
- equals(typeof(secretValue), "__", "is secret value available in this context?");
- equals(typeof(publicValue), "__", "is public value available in this context?");
+ equals(typeof(secretValue), "__", "is secretValue available in this context?");
+ equals(typeof(publicValue), "__", "is publicValue available in this context?");
});
test("arguments array", function() {

0 comments on commit 3acbbbb

Please sign in to comment.