fix(change_detection/lexer): support production mode

The Lexer uses the global `assert` function of Dart, which is not
yet available in JavaScript. Later on, all `assert` statements should
be automatically removed by Traceur.
This commit is contained in:
Tobias Bosch 2014-11-14 14:22:13 -08:00
parent 7d0673723f
commit aa9eeb80e7
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@ import {assert} from 'rtts_assert/rtts_assert';
export var Type = Function;
export var Math = window.Math;
// global assert support, as Dart has it...
// TODO: `assert` calls need to be removed in production code!
window.assert = assert;
export class FIELD {
constructor(definition) {
this.definition = definition;