Skip to content

Commit 8469d57

Browse files
committed
Remove enumerable
The robot lied!
1 parent 778630c commit 8469d57

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/oxlint/src-js/generated/deserialize.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ function deserializeProgram(pos) {
6464
uint8 =
6565
sourceText =
6666
void 0;
67-
Object.defineProperty(this, 'comments', {
68-
value: comments,
69-
enumerable: true,
70-
});
67+
Object.defineProperty(this, 'comments', { value: comments });
7168
return comments;
7269
},
7370
start: 0,

crates/oxc_ast/src/serialize/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl Program<'_> {
150150
const comments = DESER[Vec<Comment>](POS_OFFSET.comments);
151151
// Drop the references
152152
refUint32 = refUint8 = refSourceText = uint32 = uint8 = sourceText = undefined;
153-
Object.defineProperty(this, 'comments', { value: comments, enumerable: true });
153+
Object.defineProperty(this, 'comments', { value: comments });
154154
return comments;
155155
},
156156
/* END_IF */

0 commit comments

Comments
 (0)