Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
events: deal with no argument case#33611
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
Uh oh!
There was an error while loading. Please reload this page.
48b30da to cea4961Comparebenjamingr commented May 28, 2020
@targos is this more of what you had in mind? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented May 28, 2020
nodejs-github-bot commented May 28, 2020
PR-URL: #33611 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
benjamingr commented May 31, 2020 • edited by BridgeAR
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by BridgeAR
Uh oh!
There was an error while loading. Please reload this page.
c4961e4 to 7a1f27eComparenodejs-github-bot commented May 31, 2020
nodejs-github-bot commented Jun 1, 2020
jasnell commented Jun 3, 2020
@benjamingr ... the CI failure here can be fixed with the following change: diff --git a/test/parallel/test-eventtarget.js b/test/parallel/test-eventtarget.js index 82a89caae1..783ca5eeab 100644 --- a/test/parallel/test-eventtarget.js+++ b/test/parallel/test-eventtarget.js@@ -408,6 +408,6 @@ ok(EventTarget);{const target = new EventTarget(); strictEqual(target.toString(), '[object EventTarget]'); - const event = new Event();+ const event = new Event(''); strictEqual(event.toString(), '[object Event]')} |
benjamingr commented Jun 4, 2020
@jasnell pushed a fix, feel free to push such fixed on my (ET) branches in the future and thanks for landing. |
a5bba69 to f912eecComparenodejs-github-bot commented Jun 4, 2020
nodejs-github-bot commented Jun 4, 2020
nodejs-github-bot commented Jun 4, 2020
f912eec to 9e77c56Comparenodejs-github-bot commented Jun 5, 2020
PR-URL: #33611 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
jasnell commented Jun 5, 2020
Landed in 2362378 |
PR-URL: #33611 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #33611 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Fix
new Event()to throw an error rather than behave likenew Event(undefined)to align with browser behavior.make -j4 test(UNIX), orvcbuild test(Windows) passescc @jasnell
I'll be making a few of these (compatibility) PRs to align with Chrome's behavior as I run into issues and eventually port the WPTs (as suggested by @targos).
I'm keeping these small so it's easier to bikeshed things like error codes.