Changeset 188542 in webkit
- Timestamp:
- Aug 17, 2015, 2:40:30 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r188540 r188542 1 2015-07-28 Sam Weinig <sam@webkit.org> 2 3 Cleanup the builtin JavaScript files 4 https://bugs.webkit.org/show_bug.cgi?id=147382 5 6 Reviewed by Geoffrey Garen. 7 8 * builtins/Array.prototype.js: 9 * builtins/ArrayConstructor.js: 10 * builtins/ArrayIterator.prototype.js: 11 * builtins/Function.prototype.js: 12 * builtins/Iterator.prototype.js: 13 * builtins/ObjectConstructor.js: 14 * builtins/StringConstructor.js: 15 * builtins/StringIterator.prototype.js: 16 Unify the style of the built JavaScript files. 17 1 18 2015-08-17 Alex Christensen <achristensen@webkit.org> 2 19 -
trunk/Source/JavaScriptCore/builtins/Array.prototype.js
r186298 r188542 28 28 { 29 29 "use strict"; 30 30 31 if (this === null) 31 32 throw new @TypeError("Array.prototype.reduce requires that |this| not be null"); … … 65 66 { 66 67 "use strict"; 68 67 69 if (this === null) 68 70 throw new @TypeError("Array.prototype.reduceRight requires that |this| not be null"); … … 99 101 } 100 102 101 function every(callback /*, thisArg */) { 102 "use strict"; 103 function every(callback /*, thisArg */) 104 { 105 "use strict"; 106 103 107 if (this === null) 104 108 throw new @TypeError("Array.prototype.every requires that |this| not be null"); … … 125 129 } 126 130 127 function forEach(callback /*, thisArg */) { 128 "use strict"; 131 function forEach(callback /*, thisArg */) 132 { 133 "use strict"; 134 129 135 if (this === null) 130 136 throw new @TypeError("Array.prototype.forEach requires that |this| not be null"); … … 147 153 } 148 154 149 function filter(callback /*, thisArg */) { 150 "use strict"; 155 function filter(callback /*, thisArg */) 156 { 157 "use strict"; 158 151 159 if (this === null) 152 160 throw new @TypeError("Array.prototype.filter requires that |this| not be null"); … … 176 184 } 177 185 178 function map(callback /*, thisArg */) { 179 "use strict"; 186 function map(callback /*, thisArg */) 187 { 188 "use strict"; 189 180 190 if (this === null) 181 191 throw new @TypeError("Array.prototype.map requires that |this| not be null"); … … 203 213 } 204 214 205 function some(callback /*, thisArg */) { 206 "use strict"; 215 function some(callback /*, thisArg */) 216 { 217 "use strict"; 218 207 219 if (this === null) 208 220 throw new @TypeError("Array.prototype.some requires that |this| not be null"); … … 230 242 { 231 243 "use strict"; 244 232 245 if (this === null) 233 246 throw new @TypeError("Array.prototype.fill requires that |this| not be null"); … … 268 281 } 269 282 270 function find(callback /*, thisArg */) { 271 "use strict"; 283 function find(callback /*, thisArg */) 284 { 285 "use strict"; 286 272 287 if (this === null) 273 288 throw new @TypeError("Array.prototype.find requires that |this| not be null"); … … 291 306 } 292 307 293 function findIndex(callback /*, thisArg */) { 294 "use strict"; 308 function findIndex(callback /*, thisArg */) 309 { 310 "use strict"; 311 295 312 if (this === null) 296 313 throw new @TypeError("Array.prototype.findIndex requires that |this| not be null"); … … 313 330 } 314 331 315 function includes(searchElement /*, fromIndex*/) { 316 "use strict"; 332 function includes(searchElement /*, fromIndex*/) 333 { 334 "use strict"; 335 317 336 if (this === null) 318 337 throw new @TypeError("Array.prototype.includes requires that |this| not be null"); -
trunk/Source/JavaScriptCore/builtins/ArrayConstructor.js
r186298 r188542 37 37 } 38 38 39 function from(items /*, mapFn, thisArg */) { 39 function from(items /*, mapFn, thisArg */) 40 { 40 41 "use strict"; 41 42 -
trunk/Source/JavaScriptCore/builtins/ArrayIterator.prototype.js
r182118 r188542 24 24 */ 25 25 26 function next() { 26 function next() 27 { 27 28 "use strict"; 28 29 -
trunk/Source/JavaScriptCore/builtins/Function.prototype.js
r167313 r188542 24 24 */ 25 25 26 function call(thisArgument) { 26 function call(thisArgument) 27 { 27 28 "use strict"; 29 28 30 return this.@call(...arguments); 29 31 } 30 32 31 function apply(thisValue, argumentValues) { 33 function apply(thisValue, argumentValues) 34 { 32 35 "use strict"; 36 33 37 return this.@apply(thisValue, argumentValues); 34 38 } -
trunk/Source/JavaScriptCore/builtins/Iterator.prototype.js
r187205 r188542 26 26 function symbolIterator() 27 27 { 28 'use strict'; 28 "use strict"; 29 29 30 return this; 30 31 } -
trunk/Source/JavaScriptCore/builtins/ObjectConstructor.js
r187363 r188542 24 24 */ 25 25 26 function assign(target/*[*/, /*...*/sources/*] */) { 26 function assign(target/*[*/, /*...*/sources/*] */) 27 { 27 28 "use strict"; 28 29 -
trunk/Source/JavaScriptCore/builtins/StringConstructor.js
r186298 r188542 24 24 */ 25 25 26 function raw(template) { 26 function raw(template) 27 { 27 28 "use strict"; 28 29 -
trunk/Source/JavaScriptCore/builtins/StringIterator.prototype.js
r184871 r188542 24 24 */ 25 25 26 function next() { 26 function next() 27 { 27 28 "use strict"; 28 29
Note:
See TracChangeset
for help on using the changeset viewer.