mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user