@@ -212,8 +212,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
212
212
coreSpec.semantics.runtimeClassNameMapper,
213
213
className.nameString
214
214
)
215
- val nameDataValue : List [wa.Instr ] =
216
- ctx.stringPool.getConstantStringDataInstr(nameStr)
215
+ val nameValue = ctx.stringPool.getConstantStringInstr(nameStr)
217
216
218
217
val kind = className match {
219
218
case ObjectClass => KindObject
@@ -299,8 +298,10 @@ class ClassEmitter(coreSpec: CoreSpec) {
299
298
elemsInstrs :+ wa.ArrayNewFixed (genTypeID.reflectiveProxies, reflectiveProxies.size)
300
299
}
301
300
302
- nameDataValue :::
301
+ (
303
302
List (
303
+ // name
304
+ nameValue,
304
305
// kind
305
306
wa.I32Const (kind),
306
307
// specialInstanceTypes
@@ -312,8 +313,6 @@ class ClassEmitter(coreSpec: CoreSpec) {
312
313
List (
313
314
// componentType - always `null` since this method is not used for array types
314
315
wa.RefNull (watpe.HeapType (genTypeID.typeData)),
315
- // name - initially `null`; filled in by the `typeDataName` helper
316
- wa.RefNull (watpe.HeapType .NoExtern ),
317
316
// the classOf instance - initially `null`; filled in by the `createClassOf` helper
318
317
wa.RefNull (watpe.HeapType (genTypeID.ClassStruct )),
319
318
// arrayOf, the typeData of an array of this type - initially `null`; filled in by the `arrayTypeData` helper
@@ -327,6 +326,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
327
326
// Generated instructions create an array of reflective proxy structs, where each struct
328
327
// contains the ID of the reflective proxy and a reference to the actual method implementation.
329
328
reflectiveProxiesInstrs
329
+ )
330
330
}
331
331
332
332
private def genTypeDataGlobal (className : ClassName , typeDataTypeID : wanme.TypeID ,
@@ -1366,7 +1366,7 @@ class ClassEmitter(coreSpec: CoreSpec) {
1366
1366
1367
1367
ctx.moduleBuilder.addImport(
1368
1368
wamod.Import (
1369
- " __scalaJSExportSetters " ,
1369
+ ExportSettersModule ,
1370
1370
exportedName,
1371
1371
wamod.ImportDesc .Func (
1372
1372
functionID,
0 commit comments