Changeset 182868 in webkit
- Timestamp:
- Apr 15, 2015, 4:14:55 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/js/math-expected.txt (modified) (1 diff)
-
LayoutTests/js/script-tests/math.js (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (2 diffs)
-
Source/JavaScriptCore/runtime/MathObject.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r182863 r182868 1 2015-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 1 10 2015-04-15 Jordan Harband <ljharb@gmail.com> 2 11 -
trunk/LayoutTests/js/math-expected.txt
r173330 r182868 103 103 PASS sideEffect is 0 104 104 PASS Math.hypot(3, 4, 'foo') is NaN 105 PASS Math.imul.length is 2 105 106 PASS Math.log(NaN) is NaN 106 107 PASS Math.log(0) is -Infinity -
trunk/LayoutTests/js/script-tests/math.js
r173330 r182868 145 145 shouldBe('sideEffect', '0'); 146 146 shouldBe("Math.hypot(3, 4, 'foo')", "NaN"); 147 148 shouldBe("Math.imul.length", "2"); 147 149 148 150 shouldBe("Math.log(NaN)", "NaN"); -
trunk/Source/JavaScriptCore/ChangeLog
r182863 r182868 1 2015-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 1 14 2015-04-15 Jordan Harband <ljharb@gmail.com> 2 15 … … 6 19 Reviewed by Benjamin Poulain. 7 20 8 Correcting func iton length from 1, to 2, to match spec21 Correcting function length from 1, to 2, to match spec 9 22 https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.parseint 10 23 -
trunk/Source/JavaScriptCore/runtime/MathObject.cpp
r182205 r182868 130 130 putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier::fromString(&vm, "tanh"), 1, mathProtoFuncTanh, NoIntrinsic, DontEnum | Function); 131 131 putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier::fromString(&vm, "trunc"), 1, mathProtoFuncTrunc, NoIntrinsic, DontEnum | Function); 132 putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier::fromString(&vm, "imul"), 1, mathProtoFuncIMul, IMulIntrinsic, DontEnum | Function);132 putDirectNativeFunctionWithoutTransition(vm, globalObject, Identifier::fromString(&vm, "imul"), 2, mathProtoFuncIMul, IMulIntrinsic, DontEnum | Function); 133 133 } 134 134
Note:
See TracChangeset
for help on using the changeset viewer.