File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ class Translator with KernelNodes {
303
303
String ? exportName = functions.getExport (reference);
304
304
305
305
if (options.printKernel || options.printWasm) {
306
- String header = "#${function .index }: $canonicalName " ;
306
+ String header = "#${function .name }: $canonicalName " ;
307
307
if (exportName != null ) {
308
308
header = "$header (exported as $exportName )" ;
309
309
}
@@ -371,7 +371,7 @@ class Translator with KernelNodes {
371
371
_printFunction (function, info.constant);
372
372
} else {
373
373
if (options.printWasm) {
374
- print ("Global #${info .global .index }: ${info .constant }" );
374
+ print ("Global #${info .global .name }: ${info .constant }" );
375
375
final global = info.global;
376
376
if (global is w.GlobalBuilder ) {
377
377
print (global.initializer.trace);
@@ -386,7 +386,7 @@ class Translator with KernelNodes {
386
386
387
387
void _printFunction (w.BaseFunction function, Object name) {
388
388
if (options.printWasm) {
389
- print ("#${function .index }: $name " );
389
+ print ("#${function .name }: $name " );
390
390
final f = function;
391
391
if (f is w.FunctionBuilder ) {
392
392
print (f.body.trace);
You can’t perform that action at this time.
0 commit comments