lib: remove non used getter in lib/perf_hooks.js

PR-URL: https://github.com/nodejs/node/pull/36907
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Juan José Arboleda authored and Michaël Zasso committed 2021-05-01 12:24:58 +02:00
1 parent 93517dce78
commit d78e2ed82c
1 file changed
-11
-11
View File
@@ -75,7 +75,6 @@ const kInsertEntry = Symbol('insert-entry');
const kGetEntries = Symbol('get-entries');
const kIndex = Symbol('index');
const kMarks = Symbol('marks');
const kCount = Symbol('count');
const observers = {};
const observerableTypes = [
@@ -280,11 +279,6 @@ class PerformanceObserverEntryList {
writable: true,
enumerable: false,
value: {}
},
[kCount]: {
writable: true,
enumerable: false,
value: 0
}
});
L.init(this[kEntries]);
@@ -293,11 +287,6 @@ class PerformanceObserverEntryList {
[kInsertEntry](entry) {
const item = { entry };
L.append(this[kEntries], item);
this[kCount]++;
}
get length() {
return this[kCount];
}
[kGetEntries](name, type) {