Bug 75455 - ES5 prohibits parseInt from supporting octal
Summary: ES5 prohibits parseInt from supporting octal
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gavin Barraclough
URL:
Keywords:
Depends on:
Blocks: 75468
  Show dependency treegraph
 
Reported: 2012-01-02 18:23 PST by Gavin Barraclough
Modified: 2012-01-03 04:33 PST (History)
3 users (show)

See Also:


Attachments
Fix (7.64 KB, patch)
2012-01-02 18:31 PST, Gavin Barraclough
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Barraclough 2012-01-02 18:23:40 PST
See sections 15.1.2.2 and annex E.
Comment 1 Gavin Barraclough 2012-01-02 18:31:47 PST
Created attachment 120905 [details]
Fix
Comment 2 WebKit Review Bot 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.
Comment 3 WebKit Review Bot 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
Comment 4 Sam Weinig 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.
Comment 5 Gavin Barraclough 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).
Comment 6 Csaba Osztrogonác 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?
Comment 7 Gavin Barraclough 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!
Comment 8 Gavin Barraclough 2012-01-02 23:01:19 PST
JSC tests fixed in r103926.