Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instanceof Event does not work as expected #1871

Closed
theseanl opened this issue Jul 28, 2017 · 1 comment
Closed

instanceof Event does not work as expected #1871

theseanl opened this issue Jul 28, 2017 · 1 comment
Assignees
Milestone

Comments

@theseanl
Copy link

Steps to reproduce

  1. Add a following userscript to AG for Win:
// ==UserScript==
// @name         instanceof
// @namespace    instanceof
// @match        *://*/*
// @grant        unsafeWindow
// ==/UserScript==

var a = new MouseEvent('click');
console.log(a instanceof Event);
  1. Visit any site, open the console to see what is printed.

Expected behavior

The console prints true, as in Tampermonkey.

Actual behavior

The console prints false.

Your environment

Chrome 61
Windows 10 14393

@adbuker
Copy link

adbuker commented Aug 21, 2017

pull-requests/2

@adbuker adbuker closed this as completed Aug 23, 2017
@vozersky vozersky added beta and removed beta labels Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants