[tor-bugs] #31126 [Circumvention/Snowflake]: Query.parse returns spurious keys (originating from Object.prototype)

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 9 23:14:44 UTC 2019


#31126: Query.parse returns spurious keys (originating from Object.prototype)
-----------------------------------------+----------------------
     Reporter:  dcf                      |      Owner:  dcf
         Type:  defect                   |     Status:  assigned
     Priority:  Medium                   |  Milestone:
    Component:  Circumvention/Snowflake  |    Version:
     Severity:  Minor                    |   Keywords:
Actual Points:                           |  Parent ID:
       Points:                           |   Reviewer:
      Sponsor:                           |
-----------------------------------------+----------------------
 For example, these test cases would fail:
 {{{#!javascript
 describe 'query string', ->
   it 'should parse correctly', ->
     expect ("toString" in (Query.parse ''))
       .toBe(false)
     expect ((Query.parse '')["hasOwnProperty"])
       .toBeUndefined()
 }}}

 I'm tempted to replace all this with [https://developer.mozilla.org/en-
 US/docs/Web/API/URL new URL] and [https://developer.mozilla.org/en-
 US/docs/Web/API/URLSearchParams URLSearchParams].

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31126>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list