diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-11-23 12:09:05 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-11-27 21:29:01 +0300 |
commit | 141a6e34eed05577edf43ad085a74f330d0559cb (patch) | |
tree | 1d66ed917d299069b79d34abe1493d18dcb5e138 /lib/internal/priority_queue.js | |
parent | 5904dfcc9c70b79971ab09dacd711e5c13d7120c (diff) |
lib: enforce use of Array from primordials
PR-URL: https://github.com/nodejs/node/pull/30635
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'lib/internal/priority_queue.js')
-rw-r--r-- | lib/internal/priority_queue.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/internal/priority_queue.js b/lib/internal/priority_queue.js index ec8bbaea412..afd2cef643b 100644 --- a/lib/internal/priority_queue.js +++ b/lib/internal/priority_queue.js @@ -1,5 +1,9 @@ 'use strict'; +const { + Array, +} = primordials; + const kCompare = Symbol('compare'); const kHeap = Symbol('heap'); const kSetPosition = Symbol('setPosition'); |