Thanks to visit codestin.com
Credit goes to github.com

Skip to content

More edge-case tests #71

@jcbhmr

Description

@jcbhmr

Example for things like isString():

  • Object.create(String.prototype)
  • new String()
  • new class extends String {}
  • new iframe.contentWindow.String()
  • { [Symbol.toStringTag]: "String" }
  • new class String {}
  • new class String { [Symbol.toStringTag] = "String" }
  • new (iframe.contentWindow.eval("class String { [Symbol.toStringTag] = 'String' }"))()

@mesqueeb Thoughts on what each of these edge-cases should return?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions