Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(918)

Unified Diff: test/codegen/expect/convert/convert.js

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/convert/convert.js
diff --git a/test/codegen/expect/convert/convert.js b/test/codegen/expect/convert/convert.js
index 6bf36f920387d55e6fea7c08c1756d9caa6c4850..e3a7f9060d37bc528b3e8f5b915479a97e29d172 100644
--- a/test/codegen/expect/convert/convert.js
+++ b/test/codegen/expect/convert/convert.js
@@ -1060,7 +1060,7 @@ var convert;
class _JsonStringifier extends dart.Object {
_JsonStringifier(_toEncodable) {
this._seen = new core.List();
- this._toEncodable = _toEncodable !== null ? _toEncodable : _defaultToEncodable;
+ this._toEncodable = dart.as(_toEncodable !== null ? _toEncodable : _defaultToEncodable, core.Function);
}
static hexDigit(x) {
return x < 10 ? 48 + x : 87 + x;

Powered by Google App Engine
This is Rietveld 408576698