Changeset 248746 in webkit
- Timestamp:
- Aug 15, 2019, 2:18:11 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/webgpu/whlsl/lexing.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/webgpu/WHLSL/WHLSLLexer.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r248736 r248746 1 2019-08-15 Robin Morisset <rmorisset@apple.com> 2 3 [WHLSL] Don't accept operator&& or operator|| in the Lexer 4 https://bugs.webkit.org/show_bug.cgi?id=200785 5 6 Reviewed by Saam Barati. 7 8 * webgpu/whlsl/lexing.html: 9 1 10 2019-08-15 Devin Rousso <drousso@apple.com> 2 11 -
trunk/LayoutTests/webgpu/whlsl/lexing.html
r248658 r248746 156 156 } 157 157 `); 158 159 await checkFail(` 160 int operator&&(int x, int y) { 161 return 42; 162 } 163 `); 164 165 await checkFail(` 166 bool operator||(int x, int y) { 167 return 42; 168 } 169 `); 158 170 }; 159 171 -
trunk/Source/WebCore/ChangeLog
r248740 r248746 1 2019-08-15 Robin Morisset <rmorisset@apple.com> 2 3 [WHLSL] Don't accept operator&& or operator|| in the Lexer 4 https://bugs.webkit.org/show_bug.cgi?id=200785 5 6 Reviewed by Saam Barati. 7 8 Implementing && or || as function calls would lose us short-circuiting. 9 10 2 new tests in LayoutTests/webgpu/whlsl/lexing.html 11 12 * Modules/webgpu/WHLSL/WHLSLLexer.cpp: 13 (WebCore::WHLSL::Lexer::consumeTokenFromStream): 14 1 15 2019-08-15 Saam Barati <sbarati@apple.com> 2 16 -
trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLLexer.cpp
r248658 r248746 869 869 return token(Token::Type::OperatorName); 870 870 return token(Token::Type::Invalid); 871 case '&':872 shift();873 return token(Token::Type::OperatorName);874 871 case '.': 875 872 shift(); … … 919 916 case '|': 920 917 shift(); 921 consume('|');922 918 return token(Token::Type::OperatorName); 923 919
Note:
See TracChangeset
for help on using the changeset viewer.