Changeset 188542 in webkit


Ignore:
Timestamp:
Aug 17, 2015, 2:40:30 PM (10 years ago)
Author:
weinig@apple.com
Message:

Cleanup the builtin JavaScript files
https://bugs.webkit.org/show_bug.cgi?id=147382

Reviewed by Geoffrey Garen.

  • builtins/Array.prototype.js:
  • builtins/ArrayConstructor.js:
  • builtins/ArrayIterator.prototype.js:
  • builtins/Function.prototype.js:
  • builtins/Iterator.prototype.js:
  • builtins/ObjectConstructor.js:
  • builtins/StringConstructor.js:
  • builtins/StringIterator.prototype.js:

Unify the style of the built JavaScript files.

Location:
trunk/Source/JavaScriptCore
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r188540 r188542  
     12015-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
    1182015-08-17  Alex Christensen  <achristensen@webkit.org>
    219
  • trunk/Source/JavaScriptCore/builtins/Array.prototype.js

    r186298 r188542  
    2828{
    2929    "use strict";
     30
    3031    if (this === null)
    3132        throw new @TypeError("Array.prototype.reduce requires that |this| not be null");
     
    6566{
    6667    "use strict";
     68
    6769    if (this === null)
    6870        throw new @TypeError("Array.prototype.reduceRight requires that |this| not be null");
     
    99101}
    100102
    101 function every(callback /*, thisArg */) {
    102     "use strict";
     103function every(callback /*, thisArg */)
     104{
     105    "use strict";
     106
    103107    if (this === null)
    104108        throw new @TypeError("Array.prototype.every requires that |this| not be null");
     
    125129}
    126130
    127 function forEach(callback /*, thisArg */) {
    128     "use strict";
     131function forEach(callback /*, thisArg */)
     132{
     133    "use strict";
     134
    129135    if (this === null)
    130136        throw new @TypeError("Array.prototype.forEach requires that |this| not be null");
     
    147153}
    148154
    149 function filter(callback /*, thisArg */) {
    150     "use strict";
     155function filter(callback /*, thisArg */)
     156{
     157    "use strict";
     158
    151159    if (this === null)
    152160        throw new @TypeError("Array.prototype.filter requires that |this| not be null");
     
    176184}
    177185
    178 function map(callback /*, thisArg */) {
    179     "use strict";
     186function map(callback /*, thisArg */)
     187{
     188    "use strict";
     189
    180190    if (this === null)
    181191        throw new @TypeError("Array.prototype.map requires that |this| not be null");
     
    203213}
    204214
    205 function some(callback /*, thisArg */) {
    206     "use strict";
     215function some(callback /*, thisArg */)
     216{
     217    "use strict";
     218
    207219    if (this === null)
    208220        throw new @TypeError("Array.prototype.some requires that |this| not be null");
     
    230242{
    231243    "use strict";
     244
    232245    if (this === null)
    233246        throw new @TypeError("Array.prototype.fill requires that |this| not be null");
     
    268281}
    269282
    270 function find(callback /*, thisArg */) {
    271     "use strict";
     283function find(callback /*, thisArg */)
     284{
     285    "use strict";
     286
    272287    if (this === null)
    273288        throw new @TypeError("Array.prototype.find requires that |this| not be null");
     
    291306}
    292307
    293 function findIndex(callback /*, thisArg */) {
    294     "use strict";
     308function findIndex(callback /*, thisArg */)
     309{
     310    "use strict";
     311
    295312    if (this === null)
    296313        throw new @TypeError("Array.prototype.findIndex requires that |this| not be null");
     
    313330}
    314331
    315 function includes(searchElement /*, fromIndex*/) {
    316     "use strict";
     332function includes(searchElement /*, fromIndex*/)
     333{
     334    "use strict";
     335
    317336    if (this === null)
    318337        throw new @TypeError("Array.prototype.includes requires that |this| not be null");
  • trunk/Source/JavaScriptCore/builtins/ArrayConstructor.js

    r186298 r188542  
    3737}
    3838
    39 function from(items /*, mapFn, thisArg */) {
     39function from(items /*, mapFn, thisArg */)
     40{
    4041    "use strict";
    4142
  • trunk/Source/JavaScriptCore/builtins/ArrayIterator.prototype.js

    r182118 r188542  
    2424 */
    2525
    26 function next() {
     26function next()
     27{
    2728    "use strict";
    2829
  • trunk/Source/JavaScriptCore/builtins/Function.prototype.js

    r167313 r188542  
    2424 */
    2525
    26 function call(thisArgument) {
     26function call(thisArgument)
     27{
    2728    "use strict";
     29
    2830    return this.@call(...arguments);
    2931}
    3032
    31 function apply(thisValue, argumentValues) {
     33function apply(thisValue, argumentValues)
     34{
    3235    "use strict";
     36
    3337    return this.@apply(thisValue, argumentValues);
    3438}
  • trunk/Source/JavaScriptCore/builtins/Iterator.prototype.js

    r187205 r188542  
    2626function symbolIterator()
    2727{
    28     'use strict';
     28    "use strict";
     29
    2930    return this;
    3031}
  • trunk/Source/JavaScriptCore/builtins/ObjectConstructor.js

    r187363 r188542  
    2424 */
    2525
    26 function assign(target/*[*/, /*...*/sources/*] */) {
     26function assign(target/*[*/, /*...*/sources/*] */)
     27{
    2728    "use strict";
    2829
  • trunk/Source/JavaScriptCore/builtins/StringConstructor.js

    r186298 r188542  
    2424 */
    2525
    26 function raw(template) {
     26function raw(template)
     27{
    2728    "use strict";
    2829
  • trunk/Source/JavaScriptCore/builtins/StringIterator.prototype.js

    r184871 r188542  
    2424 */
    2525
    26 function next() {
     26function next()
     27{
    2728    "use strict";
    2829
Note: See TracChangeset for help on using the changeset viewer.