Skip to content

Commit

Permalink
Merge pull request #322 from loynoir/fix-arrow-fn-arguments
Browse files Browse the repository at this point in the history
Fix using `arguments` in arrow function
  • Loading branch information
ije authored May 11, 2022
2 parents 46940b3 + 00917ed commit dfe53a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/embed/polyfills/node_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ export default {
}
},
umask: () => deno ? Deno.umask ?? 0 : 0,
nextTick: (fn) => {
// arrow function don't have `arguments`
nextTick: function(fn) {
let args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (let i = 1; i < arguments.length; i++) {
Expand Down

0 comments on commit dfe53a8

Please sign in to comment.