⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184082 in webkit


Ignore:
Timestamp:
May 11, 2015, 5:05:49 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r182868 - Math.imul has wrong length in Safari 8.0.4
https://bugs.webkit.org/show_bug.cgi?id=143658

Patch by Jordan Harband <ljharb@gmail.com> on 2015-04-15
Reviewed by Benjamin Poulain.

Source/JavaScriptCore:

Correcting function length from 1, to 2, to match spec
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.imul

  • runtime/MathObject.cpp:

(JSC::MathObject::finishCreation):

LayoutTests:

  • js/script-tests/math.js:
Location:
releases/WebKitGTK/webkit-2.8
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.8/LayoutTests/ChangeLog

    r184078 r184082  
     12015-04-15  Jordan Harband  <ljharb@gmail.com>
     2
     3        Math.imul has wrong length in Safari 8.0.4
     4        https://bugs.webkit.org/show_bug.cgi?id=143658
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        * js/script-tests/math.js:
     9
    1102015-04-15  Jordan Harband  <ljharb@gmail.com>
    211
  • releases/WebKitGTK/webkit-2.8/LayoutTests/js/math-expected.txt

    r173330 r184082  
    103103PASS sideEffect is 0
    104104PASS Math.hypot(3, 4, 'foo') is NaN
     105PASS Math.imul.length is 2
    105106PASS Math.log(NaN) is NaN
    106107PASS Math.log(0) is -Infinity
  • releases/WebKitGTK/webkit-2.8/LayoutTests/js/script-tests/math.js

    r173330 r184082  
    145145shouldBe('sideEffect', '0');
    146146shouldBe("Math.hypot(3, 4, 'foo')", "NaN");
     147
     148shouldBe("Math.imul.length", "2");
    147149
    148150shouldBe("Math.log(NaN)", "NaN");
  • releases/WebKitGTK/webkit-2.8/Source/JavaScriptCore/ChangeLog

    r184078 r184082  
     12015-04-15  Jordan Harband  <ljharb@gmail.com>
     2
     3        Math.imul has wrong length in Safari 8.0.4
     4        https://bugs.webkit.org/show_bug.cgi?id=143658
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Correcting function length from 1, to 2, to match spec
     9        https://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.imul
     10
     11        * runtime/MathObject.cpp:
     12        (JSC::MathObject::finishCreation):
     13
    1142015-04-15  Jordan Harband  <ljharb@gmail.com>
    215
     
    619        Reviewed by Benjamin Poulain.
    720
    8         Correcting funciton length from 1, to 2, to match spec
     21        Correcting function length from 1, to 2, to match spec
    922        https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.parseint
    1023
  • releases/WebKitGTK/webkit-2.8/Source/JavaScriptCore/runtime/MathObject.cpp

    r180741 r184082  
    130130    putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier(&vm, "tanh"), 1, mathProtoFuncTanh, NoIntrinsic, DontEnum | Function);
    131131    putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier(&vm, "trunc"), 1, mathProtoFuncTrunc, NoIntrinsic, DontEnum | Function);
    132     putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier(&vm, "imul"), 1, mathProtoFuncIMul, IMulIntrinsic, DontEnum | Function);
     132    putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier(&vm, "imul"), 2, mathProtoFuncIMul, IMulIntrinsic, DontEnum | Function);
    133133}
    134134
Note: See TracChangeset for help on using the changeset viewer.