Skip to content

Commit 6535a01

Browse files
osa1Commit Queue
authored and
Commit Queue
committed
[dart2wasm] Simplify type test function names
Instead of <obj> is Class(JSUint16ArrayImpl) generate <obj> is JSUint16ArrayImpl in type test functions. Change-Id: I98e294291f91d3a117052e42b774a907c95ad6b4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/374001 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Ömer Ağacan <[email protected]>
1 parent 586c5f3 commit 6535a01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/dart2wasm/lib/types.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ class Types {
559559
[argumentType],
560560
[w.NumType.i32],
561561
),
562-
'<obj> is ${testedAgainstType.classNode}');
562+
'<obj> is ${testedAgainstType.classNode.name}');
563563

564564
final b = function.body;
565565
b.local_get(b.locals[0]);
@@ -623,7 +623,7 @@ class Types {
623623
[argumentType],
624624
[returnType],
625625
),
626-
'<obj> as ${testedAgainstType.classNode}');
626+
'<obj> as ${testedAgainstType.classNode.name}');
627627

628628
final b = function.body;
629629
w.Label asCheckBlock = b.block();

0 commit comments

Comments
 (0)