Comments (5)
The solution would be to enclose the output from desugarSwitch in a labelled block and turn the break;s into labelled breaks.
This is handled in a prior transform, desugarLabels
. We should at least figure out a better way of documenting dependencies among babel visitors, and probably look into consolidating this logic into a single pass so that it works in isolation. Haven't thought about or looked at how much they could be merged yet though.
from stopify.
This is all good. Thanks. No need to change anything.
from stopify.
@sbaxter if there is a dependency between the two transforms, they should be merged. Two dependent transforms should not be separated unless absolutely necessary.
from stopify.
Reopening because of my prior comment.
from stopify.
@rachitnigam , it's not that easy. There are a handful of desugars which involve two-stage plugins right now, it's not just this one. I'm closing this and opening a specific issue to look into consolidating desugars to map one-to-one to visitors.
from stopify.
Related Issues (20)
- Quick Start example broken HOT 5
- Data race bug in PLISS demo HOT 2
- Uncaught capture HOT 4
- Cannot .pause with default estimator
- Build an AsyncRun-like interface for pre-stopified programs HOT 12
- "class" keyword is not supported HOT 7
- Array.flat and Array.flatMap not handled correctly by @stopify/higher-order-functions HOT 2
- Only example from stopify manual fails when using webpack HOT 3
- Memory Leak During Stopified Program Execution HOT 3
- Documentation for compiler/runtime options
- Program runs incorrectly in Stopify HOT 4
- Website Navigation is inconsistant. HOT 1
- Stopify can't run with webpack output. HOT 3
- compile method on class Runner should be public?
- Window object does not affect global enviroment in stopify. HOT 3
- Demo on stopify.org fails to run if modified HOT 1
- stopify.org demo broken again HOT 1
- Pause failing on long-running programms. HOT 4
- [Feature Request] Add onResume to match onYield
- Tell if Stopify is โrunningโ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stopify.