Skip to content

Commit

Permalink
make node 0.12 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Feb 27, 2021
1 parent 1f9e025 commit 0a32360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/events-once.js
Expand Up @@ -198,7 +198,7 @@ try {
} catch (err) {}

if (hasBrowserEventTarget) {
function onceWithBrowserEventTarget() {
var onceWithBrowserEventTarget = function onceWithBrowserEventTarget() {
var et = new window.EventTarget();
var event = new window.Event('myevent');
process.nextTick(function () {
Expand All @@ -211,7 +211,7 @@ if (hasBrowserEventTarget) {
});
}

function onceWithBrowserEventTargetError() {
var onceWithBrowserEventTargetError = function onceWithBrowserEventTargetError() {
var et = new window.EventTarget();
var error = new window.Event('error');
process.nextTick(function () {
Expand Down

0 comments on commit 0a32360

Please sign in to comment.