Changeset 182863 in webkit
- Timestamp:
- Apr 15, 2015, 2:49:25 PM (11 years ago)
- Location:
- trunk
- 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
-
trunk/LayoutTests/ChangeLog
r182850 r182863 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-15 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/LayoutTests/js/number-constructor-expected.txt
r174066 r182863 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 -
trunk/LayoutTests/js/script-tests/number-constructor.js
r174066 r182863 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'); -
trunk/Source/JavaScriptCore/ChangeLog
r182857 r182863 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-15 Filip Pizlo <fpizlo@apple.com> 2 15 -
trunk/Source/JavaScriptCore/runtime/NumberConstructor.cpp
r182205 r182863 74 74 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier::fromString(&vm, "isSafeInteger"), 1, numberConstructorFuncIsSafeInteger, NoIntrinsic, DontEnum | Function); 75 75 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier::fromString(&vm, "parseFloat"), 1, globalFuncParseFloat, NoIntrinsic, DontEnum | Function); 76 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier::fromString(&vm, "parseInt"), 1, globalFuncParseInt, NoIntrinsic, DontEnum | Function);76 putDirectNativeFunctionWithoutTransition(vm, numberPrototype->globalObject(), Identifier::fromString(&vm, "parseInt"), 2, globalFuncParseInt, NoIntrinsic, DontEnum | Function); 77 77 } 78 78
Note:
See TracChangeset
for help on using the changeset viewer.