Skip to content

Commit b1205ab

Browse files
1ad2a02 fix(core): properly evaluate expressions with conditional and boolean operators
1 parent 53ccf20 commit b1205ab

778 files changed

Lines changed: 801 additions & 779 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Wed Apr 27 21:38:19 UTC 2016
2-
1e8864c4a5fe275ee085e23050230376f40e0285
1+
Wed Apr 27 21:41:51 UTC 2016
2+
1ad2a02b111629c44be6027ffcbc70de440bb734

alt_router.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

animate.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

animate/testing.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/angular2-all-testing.umd.dev.js

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

bundles/angular2-all.umd.dev.js

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

bundles/angular2-all.umd.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29901,11 +29901,13 @@ return /******/ (function(modules) { // webpackBootstrap
2990129901
return null;
2990229902
};
2990329903
AbstractEmitterVisitor.prototype.visitConditionalExpr = function (ast, ctx) {
29904+
ctx.print("(");
2990429905
ast.condition.visitExpression(this, ctx);
2990529906
ctx.print('? ');
2990629907
ast.trueCase.visitExpression(this, ctx);
2990729908
ctx.print(': ');
2990829909
ast.falseCase.visitExpression(this, ctx);
29910+
ctx.print(")");
2990929911
return null;
2991029912
};
2991129913
AbstractEmitterVisitor.prototype.visitNotExpr = function (ast, ctx) {

bundles/angular2-all.umd.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/angular2.dev.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19347,11 +19347,13 @@ System.register("angular2/src/compiler/output/abstract_emitter", ["angular2/src/
1934719347
return null;
1934819348
};
1934919349
AbstractEmitterVisitor.prototype.visitConditionalExpr = function(ast, ctx) {
19350+
ctx.print("(");
1935019351
ast.condition.visitExpression(this, ctx);
1935119352
ctx.print('? ');
1935219353
ast.trueCase.visitExpression(this, ctx);
1935319354
ctx.print(': ');
1935419355
ast.falseCase.visitExpression(this, ctx);
19356+
ctx.print(")");
1935519357
return null;
1935619358
};
1935719359
AbstractEmitterVisitor.prototype.visitNotExpr = function(ast, ctx) {

bundles/angular2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19347,11 +19347,13 @@ System.register("angular2/src/compiler/output/abstract_emitter", ["angular2/src/
1934719347
return null;
1934819348
};
1934919349
AbstractEmitterVisitor.prototype.visitConditionalExpr = function(ast, ctx) {
19350+
ctx.print("(");
1935019351
ast.condition.visitExpression(this, ctx);
1935119352
ctx.print('? ');
1935219353
ast.trueCase.visitExpression(this, ctx);
1935319354
ctx.print(': ');
1935419355
ast.falseCase.visitExpression(this, ctx);
19356+
ctx.print(")");
1935519357
return null;
1935619358
};
1935719359
AbstractEmitterVisitor.prototype.visitNotExpr = function(ast, ctx) {

0 commit comments

Comments
 (0)