chore: replace CONST_EXPR with /*@ts2dart_const*/

This commit is contained in:
Misko Hevery
2016-04-25 21:47:33 -07:00
committed by Martin Probst
parent d2527b504a
commit a02614beaa
99 changed files with 427 additions and 488 deletions

View File

@ -14,12 +14,12 @@ import {
inject
} from 'angular2/testing_internal';
import {ControlGroup, Control, ControlArray, Validators} from 'angular2/common';
import {IS_DART, isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
import {IS_DART, isPresent} from 'angular2/src/facade/lang';
import {PromiseWrapper} from 'angular2/src/facade/promise';
import {TimerWrapper, ObservableWrapper, EventEmitter} from 'angular2/src/facade/async';
export function main() {
function asyncValidator(expected, timeouts = CONST_EXPR({})) {
function asyncValidator(expected, timeouts = /*@ts2dart_const*/ {}) {
return (c) => {
var completer = PromiseWrapper.completer();
var t = isPresent(timeouts[c.value]) ? timeouts[c.value] : 0;