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

Avoid extending built-in JS classes #175

Merged
merged 2 commits into from
Oct 11, 2019
Merged

Avoid extending built-in JS classes #175

merged 2 commits into from
Oct 11, 2019

Conversation

ghengeveld
Copy link
Member

Description

Babel does not support transpiling X extends Builtin for built-in JS classes to ES5. Therefore we must use a different solution for our custom NeverSettle and FetchError classes.

Fixes #174

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 10, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 463c4b5:

Sandbox Source
great-morse-7gq6f Configuration

@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #175 into next will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             next     #175   +/-   ##
=======================================
  Coverage   98.72%   98.72%           
=======================================
  Files           8        8           
  Lines         393      393           
  Branches      143      143           
=======================================
  Hits          388      388           
  Misses          5        5
Impacted Files Coverage Δ
packages/react-async/src/reducer.js 93.93% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1be5794...463c4b5. Read the comment docs.

Copy link
Contributor

@rokoroku rokoroku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ghengeveld ghengeveld merged commit 6332df7 into next Oct 11, 2019
@ghengeveld ghengeveld deleted the extend-builtins branch October 11, 2019 13:42
@ghengeveld ghengeveld mentioned this pull request Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Legacy browser support: Issue with subclassing "Promise"
2 participants