Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel support extend natives now #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions open-in-web-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -3365,22 +3365,6 @@ <h3>6.9 : Extending JavaScript Built-in's and Web API Constructors/Classes using

<p>Even, JavaScript web API's like the DOM can be extended.</p>


<div class="notes">

<p>
<strong>Notes:</strong>
</p>
<ol>
<li>If you run the above code through Babel is will break. Sub-classing constructors/classes
has to be supported natively. Transpiling and polyfilling
can't help and in fact, will break the code. The environment either supports extending
built-in classes/object or it does not. If you extend natives make sure you are not also
babel'ifying/transpiling the code.</li>
</ol>
</div>


</div>

<div id="chapter7" class="chapter">
Expand Down