You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took the sample comparator code, and added a few pops to the end of the code. This crashes with an undefined value for 'b' being fed into the comparator.
error: Uncaught TypeError: Cannot read properties of undefined (reading 'value')
return a.value < b.value;
^
at PriorityQueue._comparator (file:///C:/....ts:78:24)
at PriorityQueue._compare (file:///C:/Users/newob/AppData/Local/deno/npm/registry.npmjs.org/p-queue-ts/1.2.0/dist/index.js:163:25)
at PriorityQueue._heapify (file:///C:/Users/newob/AppData/Local/deno/npm/registry.npmjs.org/p-queue-ts/1.2.0/dist/index.js:137:22)
at PriorityQueue.pop (file:///C:/Users/newob/AppData/Local/deno/npm/registry.npmjs.org/p-queue-ts/1.2.0/dist/index.js:72:14)
at ... (file:///C:/....ts:90:5)
The text was updated successfully, but these errors were encountered:
I took the sample comparator code, and added a few pops to the end of the code. This crashes with an undefined value for 'b' being fed into the comparator.
The text was updated successfully, but these errors were encountered: