Skip to content

Commit

Permalink
Minor typographical fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kangax committed Nov 2, 2009
1 parent b505c22 commit 1a15389
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -815,13 +815,11 @@ <h2 id="spidermonkey-peculiarity">SpiderMonkey peculiarity</h2>
(function(){

/*

When `x` is being resolved against scope chain, this local function's Activation Object is searched first.
There's no `x` in it, of course. However, since Activation Object inherits from `Object.prototype`, it is
`Object.prototype` that's being searched for `x` next. `Object.prototype.x` does in fact exist and so `x`
resolves to its value — 'outer'. As in the previous example, outer function's scope (Activation Object)
with its own x === 'inner' is never even reached.

*/

alert(x); // alerts 'outer'
Expand All @@ -838,7 +836,7 @@ <h2 id="spidermonkey-peculiarity">SpiderMonkey peculiarity</h2>
<pre lang="javascript" class="prettyprint">
(function(){

var constructor = function(){ return 1; }
var constructor = function(){ return 1; };

(function(){

Expand Down

0 comments on commit 1a15389

Please sign in to comment.