Skip to content

Commit

Permalink
Fix typo in "super" keyword reference page (#37221)
Browse files Browse the repository at this point in the history
Changed "seeked" to "sought"
  • Loading branch information
sujitmohanty authored Dec 15, 2024
1 parent dbd0228 commit dce87c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ obj2.method2(); // Logs "method 1"

### Methods that read super.prop do not behave differently when bound to other objects

Accessing `super.x` behaves like `Reflect.get(Object.getPrototypeOf(objectLiteral), "x", this)`, which means the property is always seeked on the object literal/class declaration's prototype, and unbinding and re-binding a method won't change the reference of `super`.
Accessing `super.x` behaves like `Reflect.get(Object.getPrototypeOf(objectLiteral), "x", this)`, which means the property is always sought on the object literal/class declaration's prototype, and unbinding and re-binding a method won't change the reference of `super`.

```js
class Base {
Expand Down

0 comments on commit dce87c7

Please sign in to comment.