Permalink
Browse files

removing extraneous space

  • Loading branch information...
getify committed May 17, 2018
1 parent 9d37678 commit 6e77b02f9d5cf70ad381a3257b043195389fcbef
Showing with 1 addition and 1 deletion.
  1. +1 −1 this & object prototypes/ch6.md
@@ -824,7 +824,7 @@ Because `Foo.prototype` (not `Foo`!) is in the `[[Prototype]]` chain (see Chapte
Of course, there is no `Foo` class, only a plain old normal function `Foo`, which happens to have a reference to an arbitrary object (`Foo.prototype`) that `a1` happens to be delegation-linked to. By its syntax, `instanceof` pretends to be inspecting the relationship between `a1` and `Foo`, but it's actually telling us whether `a1` and (the arbitrary object referenced by) `Foo.prototype` are related.
The semantic confusion (and indirection) of `instanceof` syntax means that to use `instanceof`-based introspection to ask if object `a1` is related to the capabilities object in question, you *have to* have a function that holds a reference to that object -- you can't just directly ask if the two objects are related.
The semantic confusion (and indirection) of `instanceof` syntax means that to use `instanceof`-based introspection to ask if object `a1` is related to the capabilities object in question, you *have to* have a function that holds a reference to that object -- you can't just directly ask if the two objects are related.
Recall the abstract `Foo` / `Bar` / `b1` example from earlier in this chapter, which we'll abbreviate here:

0 comments on commit 6e77b02

Please sign in to comment.