-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
Math: move to es6 classes #18863
Math: move to es6 classes #18863
Conversation
FYI: The class migration has been paused for now. So it might be better to wait until it's clear when this task moves on. Otherwise there will be a lot of open PRs which getting merge conflicts over time. |
BTW: 23 units test fail with your change (which is definitely an issue). |
most definitely. I had a quick look at the tests and there were things like 'x not found on undefined'. not sure how I got there by changing the syntax. I made the PR in case someone wanted to look into before I get back to it. My thinking atm is that one of the other folders might be easier... if at first you don't succeed, right? |
Hey, quick question, which discussion(s) are you referencing? |
See #6419 (comment). We cannot migrate any classes that are extended by files in |
@Mugen87 there's no reason to pause all class conversions. Why don't we move ahead with classes that are not extended in the examples? The box geometries have been converted to classes for a few months now without issue. |
I'm not sure it's just about the examples directory. Any class could be derived by user level code and I don't know how @mrdoob feels about this topic in context of backwards compatibility. Side note: Introducing classes does not mean introducing other ES6 features like |
Closing due to failing unit tests, merge conflicts and wrong example code (the PR modularized files in the |
good. your turn @Mugen87 |
Hi all.
This pull relates to #11552 #17425
I've been working on sorting the maths scripts into ES6 classes. It's close but needs some help.
My local dev website runs all of the code just fine however:
I also tried to work my way through some of the unit tests but le brain died at that point.
Going to have a look at the other folders as there may be some easier candidates for ES6 transformation.
update:
mrdoob's comment on let/const
Blocking dependencies