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:
parent
7d0673723f
commit
aa9eeb80e7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue