Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
perf_hooks: make nodeTiming a first-class object
Transform the static values to plain properties
(@addaleax review)

Refs: #35977
  • Loading branch information
mmomtchev committed Nov 6, 2020
commit 170242b2ded895a856091831d8f773c5afd16982
12 changes: 3 additions & 9 deletions lib/perf_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,17 @@ class PerformanceNodeTiming extends PerformanceEntry {
ObjectDefineProperties(this, {
name: {
enumerable: true,
get() {
return 'node';
}
value: 'node'
},
Comment thread
addaleax marked this conversation as resolved.
Resolved

entryType: {
enumerable: true,
get() {
return 'node';
}
value: 'node'
},

startTime: {
enumerable: true,
get() {
return 0;
}
value: 0
},

duration: {
Expand Down