File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
compiler/src/dotty/tools/backend/sjs Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -258,16 +258,24 @@ object JSEncoding {
258
258
if (sym.asClass.isPrimitiveValueClass) {
259
259
if (sym == defn.BooleanClass )
260
260
jstpe.BooleanType
261
+ else if (sym == defn.CharClass )
262
+ jstpe.CharType
263
+ else if (sym == defn.ByteClass )
264
+ jstpe.ByteType
265
+ else if (sym == defn.ShortClass )
266
+ jstpe.ShortType
267
+ else if (sym == defn.IntClass )
268
+ jstpe.IntType
269
+ else if (sym == defn.LongClass )
270
+ jstpe.LongType
261
271
else if (sym == defn.FloatClass )
262
272
jstpe.FloatType
263
273
else if (sym == defn.DoubleClass )
264
274
jstpe.DoubleType
265
- else if (sym == defn.LongClass )
266
- jstpe.LongType
267
275
else if (sym == defn.UnitClass )
268
276
jstpe.NoType
269
277
else
270
- jstpe. IntType
278
+ throw new AssertionError ( s " unknown primitive value class $sym " )
271
279
} else {
272
280
if (sym == defn.ObjectClass || isJSType(sym))
273
281
jstpe.AnyType
You can’t perform that action at this time.
0 commit comments