Changeset 239370 in webkit
- Timestamp:
- Dec 18, 2018 10:37:46 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChakraCore/test/UnitTestFramework/UnitTestFramework.js
r205387 r239370 367 367 { 368 368 regexp: /Invalid unary operator on the left hand side of exponentiation \(\*\*\) operator/, 369 replStr: "Unexpected token '**'. Am iguous unary expression in the left hand side of the exponentiation expression; parenthesis must be used to disambiguate the expression."369 replStr: "Unexpected token '**'. Ambiguous unary expression in the left hand side of the exponentiation expression; parentheses must be used to disambiguate the expression." 370 370 }, 371 371 { -
trunk/JSTests/ChangeLog
r239360 r239370 1 2018-12-18 Ross Kirsling <ross.kirsling@sony.com> 2 3 Error message for `-x ** y` contains a typo. 4 https://bugs.webkit.org/show_bug.cgi?id=192832 5 6 Reviewed by Saam Barati. 7 8 * ChakraCore/test/UnitTestFramework/UnitTestFramework.js: 9 (assert.assert.return.throws): 10 * stress/pow-expects-update-expression-on-lhs.js: 11 (throw.new.Error): 12 Update test expectations which match against the exact error message. 13 1 14 2018-12-18 Mark Lam <mark.lam@apple.com> 2 15 -
trunk/JSTests/stress/pow-expects-update-expression-on-lhs.js
r203664 r239370 39 39 return ${token} a ** b; 40 40 } 41 `, `SyntaxError: Unexpected token '**'. Am iguous unary expression in the left hand side of the exponentiation expression; parenthesis must be used to disambiguate the expression.`);41 `, `SyntaxError: Unexpected token '**'. Ambiguous unary expression in the left hand side of the exponentiation expression; parentheses must be used to disambiguate the expression.`); 42 42 } 43 43 } -
trunk/Source/JavaScriptCore/ChangeLog
r239364 r239370 1 2018-12-18 Ross Kirsling <ross.kirsling@sony.com> 2 3 Error message for `-x ** y` contains a typo. 4 https://bugs.webkit.org/show_bug.cgi?id=192832 5 6 Reviewed by Saam Barati. 7 8 * parser/Parser.cpp: 9 (JSC::Parser<LexerType>::parseBinaryExpression): 10 Make corrections to error message: "amiguous" -> "ambiguous", "parenthesis" -> "parentheses" 11 1 12 2018-12-18 Saam Barati <sbarati@apple.com> 2 13 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r239354 r239370 3887 3887 // If the binary operator <> has higher precedence than one of "**", this check does not work. 3888 3888 // But it's OK for ** because the operator "**" has the highest operator precedence in the binary operators. 3889 failIfTrue(match(POW) && isUnaryOpExcludingUpdateOp(leadingTokenTypeForUnaryExpression), "Am iguous unary expression in the left hand side of the exponentiation expression; parenthesis must be used to disambiguate the expression");3889 failIfTrue(match(POW) && isUnaryOpExcludingUpdateOp(leadingTokenTypeForUnaryExpression), "Ambiguous unary expression in the left hand side of the exponentiation expression; parentheses must be used to disambiguate the expression"); 3890 3890 3891 3891 int precedence = isBinaryOperator(m_token.m_type);
Note: See TracChangeset
for help on using the changeset viewer.