-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add remaining delegation need for Scala.js stubs (#97)
* Add remaining delegation need for Scala.js stubs * Update build and readme for release
- Loading branch information
Showing
8 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ target/ | |
# metals | ||
.bloop/ | ||
.metals/ | ||
project/metals.sbt | ||
/project/**/metals.sbt | ||
|
||
# vscode | ||
/.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.ekrich.config.impl | ||
|
||
import java.net.URL | ||
import java.{util => ju} | ||
|
||
/** | ||
* To workaround missing implementation in Scala.js | ||
*/ | ||
class PlatformClassLoader(cl: ClassLoader) extends ClassLoaderLike { | ||
def getResources(name: String): ju.Enumeration[URL] = ??? | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.ekrich.config.impl | ||
|
||
import java.net.URL | ||
import java.{util => ju} | ||
|
||
/** | ||
* To workaround missing implementation in Scala.js | ||
*/ | ||
trait ClassLoaderLike { | ||
def getResources(name: String): ju.Enumeration[URL] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
sconfig/sharedjvmnative/src/main/scala/PlatformClassLoader.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.ekrich.config.impl | ||
|
||
import java.net.URL | ||
import java.{util => ju} | ||
|
||
/** | ||
* To workaround missing implementation in Scala.js | ||
*/ | ||
class PlatformClassLoader(cl: ClassLoader) extends ClassLoaderLike { | ||
def getResources(name: String): ju.Enumeration[URL] = cl.getResources(name) | ||
} |