[dart2js] new-rti: debug print of named type variable miss

Change-Id: Ib344442c1dc15136408df761852e901abf4b80c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127221
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
This commit is contained in:
Stephen Adams 2019-12-09 23:20:33 +00:00 committed by commit-bot@chromium.org
parent 7974f3f899
commit 964c9d8c20
2 changed files with 6 additions and 0 deletions

View file

@ -1443,6 +1443,9 @@ class _Universe {
Object rule = _Universe.findRule(universe, interfaceName);
assert(rule != null);
String recipe = TypeRule.lookupTypeVariable(rule, name);
if (recipe == null) {
throw 'No "$name" in "${Rti._getCanonicalRecipe(environment)}"';
}
return _Universe.evalInEnvironment(universe, environment, recipe);
}

View file

@ -1443,6 +1443,9 @@ class _Universe {
Object rule = _Universe.findRule(universe, interfaceName);
assert(rule != null);
String recipe = TypeRule.lookupTypeVariable(rule, name);
if (recipe == null) {
throw 'No "$name" in "${Rti._getCanonicalRecipe(environment)}"';
}
return _Universe.evalInEnvironment(universe, environment, recipe);
}