Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

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
fix lint
  • Loading branch information
islandryu committed Jan 25, 2026
commit 7cdc3a3f817536ef5eac0d0785affd167bbad4c3
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1985,7 +1985,7 @@ def configure_v8(o, configs):
release='0',
debug='1'
)

o['variables']['v8_enable_webassembly'] = 0 if options.v8_lite_mode else 1
o['variables']['v8_enable_javascript_promise_hooks'] = 1
o['variables']['v8_enable_lite_mode'] = 1 if options.v8_lite_mode else 0
Expand Down
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const {
Error,
ErrorCaptureStackTrace,
FunctionPrototypeBind,
MathFloor,
NumberIsSafeInteger,
ObjectDefineProperties,
ObjectDefineProperty,
Expand Down Expand Up @@ -458,7 +459,7 @@ function getCallSites(frameCount = 10, options) {
return mapCallSite(binding.getCallSites(frameCount));
}

frameCount = Math.floor(frameCount);
frameCount = MathFloor(frameCount);
return binding.getCallSites(frameCount);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
frameCount = MathFloor(frameCount);
return binding.getCallSites(frameCount);
return binding.getCallSites(MathFloor(frameCount));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is experimental, would it make more sense to switch to validateInteger?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, I switched to validateInteger to limit it to integers.

};

Expand Down