Skip to content

Commit

Permalink
Extend new agnostic section
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 3, 2017
1 parent 3397a06 commit 81d1b17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
1 change: 0 additions & 1 deletion assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
* [.bind is slower](/function/bind.md)

* [RegExp]
* [Declaring instances](/regexp/declaring-instances.md)
* [Correct method](/regexp/correct-methods.md)
* [Focus on failing faster](/regexp/fail-faster.md)

Expand Down
5 changes: 5 additions & 0 deletions function/new.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ var y = new User('baravelli', 'd8b74df393528d51cd19980ae0aa028e')
x instanceof User // true
y instanceof User // true
```

This behavior is also supported by default by some native types in order to be backward compatibility with the [ECMAScript](https://tc39.github.io/ecma262) specification, like:

- [RegExp constructor](https://tc39.github.io/ecma262/#sec-regexp-constructor).
- [Error constructor](https://tc39.github.io/ecma262/#sec-error-constructor).
21 changes: 0 additions & 21 deletions regexp/declaring-instances.md

This file was deleted.

0 comments on commit 81d1b17

Please sign in to comment.