WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158262
JSON.stringify replacer function calls with numeric array indices
https://bugs.webkit.org/show_bug.cgi?id=158262
Summary
JSON.stringify replacer function calls with numeric array indices
Brian C
Reported
2016-06-01 08:28:58 PDT
Since
> typeof Object.keys(['a'])[0] === 'string';
I would expect
> JSON.stringify(['a'], function(key, value) { > console.log(typeof key); > return value; > });
to log "string" twice. Instead it logs "string" and then "number". Chrome and Firefox log "string" twice, as expected.
Attachments
Patch
(6.97 KB, patch)
2016-06-02 18:44 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Patch
(7.00 KB, patch)
2016-06-02 18:45 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-yosemite
(812.25 KB, application/zip)
2016-06-02 19:31 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2
(941.72 KB, application/zip)
2016-06-02 19:36 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews124 for ios-simulator-wk2
(666.45 KB, application/zip)
2016-06-02 19:41 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-yosemite
(1.42 MB, application/zip)
2016-06-02 19:43 PDT
,
Build Bot
no flags
Details
Patch
(9.68 KB, patch)
2016-06-03 17:01 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2016-06-02 17:27:03 PDT
I'll have a look.
Radar WebKit Bug Importer
Comment 2
2016-06-02 17:28:08 PDT
<
rdar://problem/26613876
>
Benjamin Poulain
Comment 3
2016-06-02 18:44:26 PDT
Created
attachment 280396
[details]
Patch
Benjamin Poulain
Comment 4
2016-06-02 18:45:29 PDT
Created
attachment 280397
[details]
Patch
Build Bot
Comment 5
2016-06-02 19:31:47 PDT
Comment on
attachment 280397
[details]
Patch
Attachment 280397
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/1426046
New failing tests: js/dom/JSON-stringify.html
Build Bot
Comment 6
2016-06-02 19:31:51 PDT
Created
attachment 280405
[details]
Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 7
2016-06-02 19:36:52 PDT
Comment on
attachment 280397
[details]
Patch
Attachment 280397
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/1426058
New failing tests: js/dom/JSON-stringify.html
Build Bot
Comment 8
2016-06-02 19:36:56 PDT
Created
attachment 280407
[details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 9
2016-06-02 19:41:03 PDT
Comment on
attachment 280397
[details]
Patch
Attachment 280397
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/1426053
New failing tests: js/dom/JSON-stringify.html
Build Bot
Comment 10
2016-06-02 19:41:06 PDT
Created
attachment 280411
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
Build Bot
Comment 11
2016-06-02 19:43:46 PDT
Comment on
attachment 280397
[details]
Patch
Attachment 280397
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/1426057
New failing tests: js/dom/JSON-stringify.html
Build Bot
Comment 12
2016-06-02 19:43:49 PDT
Created
attachment 280414
[details]
Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
Benjamin Poulain
Comment 13
2016-06-03 00:40:33 PDT
Comment on
attachment 280397
[details]
Patch Looks like a test needs an update. I'll do that tomorrow.
Benjamin Poulain
Comment 14
2016-06-03 17:01:32 PDT
Created
attachment 280485
[details]
Patch
Saam Barati
Comment 15
2016-06-03 17:08:56 PDT
Comment on
attachment 280485
[details]
Patch LGTM
WebKit Commit Bot
Comment 16
2016-06-03 18:07:06 PDT
Comment on
attachment 280485
[details]
Patch Clearing flags on attachment: 280485 Committed
r201674
: <
http://trac.webkit.org/changeset/201674
>
WebKit Commit Bot
Comment 17
2016-06-03 18:07:11 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug