react/scripts/babel
Dan Abramov 41f920e430
Add a test-only transform to catch infinite loops (#11790)
* Add a test-only transform to catch infinite loops

* Only track iteration count, not time

This makes the detection dramatically faster, and is okay in our case because we don't have tests that iterate so much.

* Use clearer naming

* Set different limits for tests

* Fail tests with infinite loops even if the error was caught

* Add a test
2017-12-07 20:53:13 +00:00
..
__tests__ Add a test-only transform to catch infinite loops (#11790) 2017-12-07 20:53:13 +00:00
transform-object-assign-require.js Convert the Source to ES Modules (#11389) 2017-11-02 19:50:03 +00:00
transform-prevent-infinite-loops.js Add a test-only transform to catch infinite loops (#11790) 2017-12-07 20:53:13 +00:00