Bug 75455

Summary: ES5 prohibits parseInt from supporting octal
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaScriptCoreAssignee: Gavin Barraclough <barraclough>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, ossy, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 75468    
Attachments:
Description Flags
Fix none

Gavin Barraclough
Reported 2012-01-02 18:23:40 PST
See sections 15.1.2.2 and annex E.
Attachments
Fix (7.64 KB, patch)
2012-01-02 18:31 PST, Gavin Barraclough
no flags
Gavin Barraclough
Comment 1 2012-01-02 18:31:47 PST
WebKit Review Bot
Comment 2 2012-01-02 18:38:27 PST
Attachment 120905 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1 Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:274: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:277: Should have a space between // and comment [whitespace/comments] [4] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 3 2012-01-02 19:24:08 PST
Comment on attachment 120905 [details] Fix Attachment 120905 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11003149 New failing tests: fast/js/kde/GlobalObject.html
Sam Weinig
Comment 4 2012-01-02 20:11:47 PST
Comment on attachment 120905 [details] Fix View in context: https://bugs.webkit.org/attachment.cgi?id=120905&action=review >> Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:277 >> + // 8.a. If R < 2 or R > 36, then return NaN. > > Should have a space between // and comment [whitespace/comments] [4] There seems to be a weird character in your comment.
Gavin Barraclough
Comment 5 2012-01-02 20:33:50 PST
(In reply to comment #4) > There seems to be a weird character in your comment. Ooops, yes! (copied & pasted from spec!) fixed. Fixed in r103922. (The change in layout test results for Chromium represents a bug in the v8 engine).
Csaba Osztrogonác
Comment 6 2012-01-02 22:24:56 PST
Reopen, because it broke 2 jscore tests on all bot: ecma/GlobalObject/15.1.2.2-1.js ecma/GlobalObject/15.1.2.2-2.js Could you fix it, please?
Gavin Barraclough
Comment 7 2012-01-02 22:52:30 PST
(In reply to comment #6) > Reopen, because it broke 2 jscore tests on all bot: > ecma/GlobalObject/15.1.2.2-1.js > ecma/GlobalObject/15.1.2.2-2.js > > Could you fix it, please? Ooops, sorry! - fixes for the tests are incoming!
Gavin Barraclough
Comment 8 2012-01-02 23:01:19 PST
JSC tests fixed in r103926.
Note You need to log in before you can comment on or make changes to this bug.