Skip to content

Commit 033864b

Browse files
committed
PR Feedback
1 parent fe13cdc commit 033864b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/compiler/factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ namespace ts {
12481248
// x|(a|b) => x|a|b
12491249
// x&(a&b) => x&a&b
12501250
// x^(a^b) => x^a^b
1251-
if (isMathAssociativeOperator(binaryOperator)) {
1251+
if (operatorHasAssociativeProperty(binaryOperator)) {
12521252
return false;
12531253
}
12541254

@@ -1286,7 +1286,7 @@ namespace ts {
12861286
*
12871287
* @param binaryOperator The binary operator.
12881288
*/
1289-
function isMathAssociativeOperator(binaryOperator: SyntaxKind) {
1289+
function operatorHasAssociativeProperty(binaryOperator: SyntaxKind) {
12901290
// The following operators are associative in JavaScript:
12911291
// (a*b)*c -> a*(b*c) -> a*b*c
12921292
// (a|b)|c -> a|(b|c) -> a|b|c

src/compiler/transformers/es6.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,6 @@ namespace ts {
24312431
// ES6 Spec 11.8.6.1 - Static Semantics of TV's and TRV's
24322432
// <CR><LF> and <CR> LineTerminatorSequences are normalized to <LF> for both TV and TRV.
24332433
text = text.replace(/\r\n?/g, "\n");
2434-
//text = escapeString(text);
24352434
return createLiteral(text, /*location*/ node);
24362435
}
24372436

0 commit comments

Comments
 (0)