[Webkit-unassigned] [Bug 158262] New: JSON.stringify replacer function calls with numeric array indices

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 1 08:28:58 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=158262

            Bug ID: 158262
           Summary: JSON.stringify replacer function calls with numeric
                    array indices
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: brian.carstensen at gmail.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160601/846bc079/attachment-0001.html>


More information about the webkit-unassigned mailing list