Skip to content

Commit 11f5b34

Browse files
nshahancommit-bot@chromium.org
authored andcommitted
Reland "[dartdevc] Immediately throw when encountering an unevaluated constant"
This reverts commit 62674b9. Reason for revert: There is no reason we should ever encounter an unevaluated constant in DDK and doing so implies there is an error in the constant evaluation. We hope to find all such errors with this assertion. If this causes any more test failures, feel free to revert this again and create an issue so we can fix. A fix for the issue seen in the flutter-hhh bot has landed: flutter/engine#10069 Original change's description: > Revert "[dartdevc] Immediately throw when encountering an unevaluated constant" > > This reverts commit fd38424. > > Temporarily disabling this to get Flutter roll going. See > #37605 > > [email protected] > > Change-Id: I44dbb1d4aaf8d5f9cc05f096d26cade93a364f4c > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110120 > Reviewed-by: Vijay Menon <[email protected]> > Commit-Queue: Vijay Menon <[email protected]> [email protected],[email protected] Change-Id: Ibcb719d3e6c0026b11a812bec853e158b338d51a No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110185 Commit-Queue: Nicholas Shahan <[email protected]> Reviewed-by: Nicholas Shahan <[email protected]> Reviewed-by: Vijay Menon <[email protected]>
1 parent 48662bd commit 11f5b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dev_compiler/lib/src/kernel/compiler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5376,7 +5376,7 @@ class ProgramCompiler extends Object
53765376

53775377
@override
53785378
js_ast.Expression visitUnevaluatedConstant(UnevaluatedConstant node) =>
5379-
_visitExpression(node.expression);
5379+
throw UnsupportedError('Encountered an unevaluated constant: $node');
53805380
}
53815381

53825382
bool _isInlineJSFunction(Statement body) {

0 commit comments

Comments
 (0)