Skip to content

Commit b4f5755

Browse files
committed
Fix scala-js/scala-js#2053: Always use UTF8 in PhantomJSEnv
1 parent c1e3714 commit b4f5755

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js-envs/src/test/scala/org/scalajs/jsenv/test/BasicJSEnvTests.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,13 @@ trait BasicJSEnvTests extends JSEnvTest {
2525

2626
}
2727

28+
@Test // Failed in Phantom - #2053
29+
def utf8Test: Unit = {
30+
31+
"""
32+
console.log("\u1234");
33+
""" hasOutput "\u1234\n";
34+
35+
}
36+
2837
}

0 commit comments

Comments
 (0)