-
Notifications
You must be signed in to change notification settings - Fork 387
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
Fix #2837: Remove the term "Scala.js defined" #2997
Conversation
Let me know if you want me to:
|
Refer to this link for build results (access rights to CI server needed): https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/4040/ |
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.
A couple trivial things.
@@ -203,21 +203,6 @@ class JSInteropTest extends DirectTest with TestHelpers { | |||
obj <- Seq("class", "trait", "object") | |||
} yield { | |||
s""" | |||
@ScalaJSDefined |
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.
Hum you should only remove the annotation, not the entire test case.
This test case is for a non-native JS class/trait/object, that extends js.Object
, and that has an @JSImport
annotation with a globalFallback
. There's no other test that does that.
@@ -2247,7 +2247,7 @@ abstract class GenJSCode extends plugins.PluginComponent | |||
sym.hasFlag(reflect.internal.Flags.DEFAULTPARAM) && | |||
isRawJSType(sym.owner.tpe) && { | |||
/* If this is a default parameter accessor on a | |||
* ScalaJSDefinedJSClass, we need to know if the method for which we | |||
* NonNativeJSClass, we need to know if the method for which we |
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.
"non-native JS class"?
val JSClass = new OwnerKind(0x10) | ||
/** A Scala.js-defined JS oobject. */ | ||
/** A non-native JS oobject. */ |
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.
Take the opportunity to fix the oo
in oobject
.
def sjsDefinedAnonymousClass: Unit = { | ||
test("SJSDefinedAnonymousClass") | ||
def anonymousJSClass: Unit = { | ||
test("AnonymousJSClass", "scala.scalajs.js.annotation.internal.AnonymousJSClass") | ||
} |
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.
There will be a silent conflict with b3f5839 here. The fully qualified name won't be necessary.
Can you point me to a surviving "Scala.js-defined" in tests? It seems you did rename things in |
Anyway IMO we can close #2837 with this PR, as there won't be any user-facing references to "Scala.js-defined" left, which is by far the most important. |
For example here: scala-js/test-suite/js/src/test/scala/org/scalajs/testsuite/jsinterop/JSSymbolTest.scala Line 29 in bf0b6f4
There are plenty of these left. |
Also updated. |
Ah yes I see. Let's leave them alone for now, indeed. |
Refer to this link for build results (access rights to CI server needed): https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/4048/ |
Updated (there was a line number issue in a test). |
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.
Re-LGTM
Refer to this link for build results (access rights to CI server needed): https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/4062/ |
@@ -49,7 +48,6 @@ class JSSAMTest extends DirectTest with TestHelpers { | |||
def foo(x: Int): Int | |||
} | |||
|
|||
@ScalaJSDefined |
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 change provokes some more line number changes below: at lines 61 and 64, the line numbers should be 15 and 16, respectively.
They probably creeped in from the 0.6.x branch (or forgotten imports).
It is replaced by non-native JS class/type (except for tests). With this commit, the following regexes (case insensitive) to not return any result outside of tests and the definition of the @ScalaJSDefined annotation itself. Scala\.js[- ]defined SJS ?defined ScalaJSDefined
Refer to this link for build results (access rights to CI server needed): https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/4070/ |
It is replaced by non-native JS class/type (except for tests).
With this commit, the following regexes (case insensitive) to not return
any result outside of tests and the definition of the @ScalaJSDefined
annotation itself.