Changeset 184078 in webkit
- Timestamp:
- May 11, 2015, 4:14:33 AM (11 years ago)
- Location:
- releases/WebKitGTK/webkit-2.8
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/js/number-constructor-expected.txt (modified) (1 diff)
-
LayoutTests/js/script-tests/number-constructor.js (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/runtime/NumberConstructor.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.8/LayoutTests/ChangeLog
r184077 r184078 1 2015-04-15 Jordan Harband <ljharb@gmail.com> 2 3 Number.parseInt in nightly r182673 has wrong length 4 https://bugs.webkit.org/show_bug.cgi?id=143657 5 6 Reviewed by Benjamin Poulain. 7 8 * js/number-constructor-expected.txt: 9 * js/script-tests/number-constructor.js: 10 1 11 2015-04-14 Zalan Bujtas <zalan@apple.com> 2 12 -
releases/WebKitGTK/webkit-2.8/LayoutTests/js/number-constructor-expected.txt
r174066 r184078 123 123 PASS Number.parseFloat("200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") is Infinity 124 124 PASS Number.parseFloat(foo) threw exception ReferenceError: Can't find variable: foo. 125 PASS Number.parseInt.length is 2 125 126 PASS Number.parseInt("0") is 0 126 127 PASS Number.parseInt("-0") is -0 -
releases/WebKitGTK/webkit-2.8/LayoutTests/js/script-tests/number-constructor.js
r174066 r184078 131 131 132 132 // parseInt 133 shouldBe('Number.parseInt.length', '2'); 133 134 shouldBe('Number.parseInt("0")', '0'); 134 135 shouldBe('Number.parseInt("-0")', '-0'); -
releases/WebKitGTK/webkit-2.8/Source/JavaScriptCore/ChangeLog
r184076 r184078 1 2015-04-15 Jordan Harband <ljharb@gmail.com> 2 3 Number.parseInt in nightly r182673 has wrong length 4 https://bugs.webkit.org/show_bug.cgi?id=143657 5 6 Reviewed by Benjamin Poulain. 7 8 Correcting funciton length from 1, to 2, to match spec 9 https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.parseint 10 11 * runtime/NumberConstructor.cpp: 12 (JSC::NumberConstructor::finishCreation): 13 1 14 2015-04-14 Michael Saboff <msaboff@apple.com> 2 15 -
releases/WebKitGTK/webkit-2.8/Source/JavaScriptCore/runtime/NumberConstructor.cpp
r174049 r184078 74 74 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier(&vm, "isSafeInteger"), 1, numberConstructorFuncIsSafeInteger, NoIntrinsic, DontEnum | Function); 75 75 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier(&vm, "parseFloat"), 1, globalFuncParseFloat, NoIntrinsic, DontEnum | Function); 76 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier(&vm, "parseInt"), 1, globalFuncParseInt, NoIntrinsic, DontEnum | Function);76 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier(&vm, "parseInt"), 2, globalFuncParseInt, NoIntrinsic, DontEnum | Function); 77 77 } 78 78
Note:
See TracChangeset
for help on using the changeset viewer.