-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Upgrade to Scala.js 1.0.0-RC1. #7617
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, and thank you for opening this PR! 🎉
All contributors have signed the CLA, thank you! ❤️
Commit Messages
We want to keep history, but for that to actually be useful we have
some rules on how to format our commit messages (relevant xkcd).
Please stick to these guidelines for commit messages:
- Separate subject from body with a blank line
- When fixing an issue, start your commit message with
Fix #<ISSUE-NBR>:
- Limit the subject line to 72 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line ("Add" instead of "Added")
- Wrap the body at 80 characters
- Use the body to explain what and why vs. how
adapted from https://chris.beams.io/posts/git-commit
Have an awesome day! ☀️
@@ -970,9 +970,9 @@ object Build { | |||
-- "CollectionTest.scala" -- "CollectionsOnCheckedCollectionTest.scala" -- "CollectionsOnCheckedListTest.scala" -- "CollectionsOnCheckedMapTest.scala" -- "CollectionsOnCheckedSetTest.scala" | |||
-- "CollectionsOnCollectionsTest.scala" -- "CollectionsOnListsTest.scala" -- "CollectionsOnMapsTest.scala" -- "CollectionsOnSetFromMapTest.scala" -- "CollectionsOnSetsTest.scala" | |||
-- "CollectionsOnSynchronizedCollectionTest.scala" -- "CollectionsOnSynchronizedListTest.scala" -- "CollectionsOnSynchronizedMapTest.scala" -- "CollectionsOnSynchronizedSetTest.scala" -- "CollectionsTest.scala" | |||
-- "DequeTest.scala" -- "EventObjectTest.scala" -- "FormatterTest.scala" -- "HashMapTest.scala" -- "HashSetTest.scala" | |||
-- "DequeTest.scala" -- "EventObjectTest.scala" -- "FormatterTest.scala" -- "HashMapTest.scala" -- "HashSetTest.scala" -- "IdentityHashMapTest.scala" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was added in 1.0.0-RC1. Like the other collection tests, it doesn't pass.
-- "LinkedHashMapTest.scala" -- "LinkedHashSetTest.scala" -- "LinkedListTest.scala" -- "ListTest.scala" -- "MapTest.scala" | ||
-- "NavigableSetTest.scala" -- "SetTest.scala" -- "SortedMapTest.scala" -- "SortedSetTest.scala" -- "TreeSetTest.scala")).get | ||
-- "NavigableSetTest.scala" -- "PriorityQueueTest.scala" -- "SetTest.scala" -- "SortedMapTest.scala" -- "SortedSetTest.scala" -- "TreeSetTest.scala")).get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was added in 1.0.0-RC1. Like the other collection tests, it doesn't pass.
@@ -958,7 +958,7 @@ object Build { | |||
( | |||
(dir / "shared/src/test/scala/org/scalajs/testsuite/compiler" ** (("*.scala":FileFilter) -- "RegressionTest.scala" -- "ReflectiveCallTest.scala")).get | |||
++ (dir / "shared/src/test/scala/org/scalajs/testsuite/javalib/lang" ** (("*.scala": FileFilter) -- "StringTest.scala")).get | |||
++ (dir / "shared/src/test/scala/org/scalajs/testsuite/javalib/io" ** (("*.scala": FileFilter) -- "ByteArrayInputStreamTest.scala" -- "ByteArrayOutputStreamTest.scala" -- "DataInputStreamTest.scala" -- "DataOutputStreamTest.scala" -- "InputStreamTest.scala" -- "OutputStreamWriterTest.scala" -- "PrintStreamTest.scala" -- "CommonStreamsTests.scala")).get | |||
++ (dir / "shared/src/test/scala/org/scalajs/testsuite/javalib/io" ** (("*.scala": FileFilter) -- "ByteArrayInputStreamTest.scala" -- "ByteArrayOutputStreamTest.scala" -- "DataInputStreamTest.scala" -- "DataOutputStreamTest.scala" -- "InputStreamTest.scala" -- "OutputStreamWriterTest.scala" -- "PrintStreamTest.scala" -- "ReadersTest.scala" -- "CommonStreamsTests.scala")).get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests in ReadersTest.scala
have changed, and now include calls like
assertEquals(5, someLong())
which dotty resolves to calling assertEquals(Any, Any)
(and the int
compares as not equal to the Long
) whereas Scala 2 resolves to calling assertEquals(Long, Long)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind opening an issue for that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'll minimize it later today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the detailed breakdown!
It looks like I'm hitting spurious reentrant checks:
but trying to use |
There were several changes to the IR in 1.0.0-RC1 that have an impact on this codebase: * Primitive types now have dedicated `PrimRef`s when used as `TypeRef`s, so for example `IntRef` instead of `ClassRef("I")`. See scala-js/scala-js#3802 * Names now have dedicated types instead of `String`s, and depend on the kind of symbol: `LocalName`, `LabelName`, `FieldName`, `MethodName` and `ClassName`. There are different kinds of `js.Ident`s to go with each kind of `Name`. See scala-js/scala-js#3804, scala-js/scala-js#3814 and scala-js/scala-js#3833 * Original names are now represented by a dedicated `OriginalName` type, and they are stored only at definition site, not at use site. See scala-js/scala-js#3845
980d37b
to
0c8b7aa
Compare
There were several changes to the IR in 1.0.0-RC1 that have an impact on this codebase:
PrimRef
s when used asTypeRef
s, so for exampleIntRef
instead ofClassRef("I")
.See Use a dedicated
PrimRef
forTypeRef
s of primitive types. scala-js/scala-js#3802String
s, and depend on the kind of symbol:LocalName
,LabelName
,FieldName
,MethodName
andClassName
. There are different kinds ofjs.Ident
s to go with each kind ofName
.See Introduce dedicated types for the kinds of
Ident
s and theirName
s. scala-js/scala-js#3804, Fix #2108: Defer identifier name mangling to the emitter. scala-js/scala-js#3814 and Cleanups after the big Name refactoring scala-js/scala-js#3833OriginalName
type, and they are stored only at definition site, not at use site.See Fix #3827: Review original names scala-js/scala-js#3845