Query.parse returns spurious keys (originating from Object.prototype)

For example, these test cases would fail:

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 new URL and URLSearchParams.