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
event_target: protect property defs against prototype polution
Signed-off-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
jasnell committed Aug 16, 2021
commit ae8fe16183d495dc6a5756b49cbc18c6fab47d04
5 changes: 5 additions & 0 deletions lib/internal/worker/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ ObjectDefineProperties(MessageEvent.prototype, {
},
enumerable: true,
Comment thread
jasnell marked this conversation as resolved.
configurable: true,
set: undefined,
},
origin: {
get() {
Expand All @@ -151,6 +152,7 @@ ObjectDefineProperties(MessageEvent.prototype, {
},
enumerable: true,
Comment thread
jasnell marked this conversation as resolved.
configurable: true,
set: undefined,
},
lastEventId: {
get() {
Expand All @@ -160,6 +162,7 @@ ObjectDefineProperties(MessageEvent.prototype, {
},
enumerable: true,
Comment thread
jasnell marked this conversation as resolved.
configurable: true,
set: undefined,
},
source: {
get() {
Expand All @@ -169,6 +172,7 @@ ObjectDefineProperties(MessageEvent.prototype, {
},
enumerable: true,
Comment thread
jasnell marked this conversation as resolved.
configurable: true,
set: undefined,
},
ports: {
get() {
Expand All @@ -178,6 +182,7 @@ ObjectDefineProperties(MessageEvent.prototype, {
},
enumerable: true,
Comment thread
jasnell marked this conversation as resolved.
configurable: true,
set: undefined,
},
});

Expand Down