Skip to content

Conversation

@Deep-code2004
Copy link

This PR enhances the verify_lazy.js script to provide stronger validation of API lazy-loading behavior in the google-api-nodejs-client.

The existing script performed basic access checks but did not verify whether APIs were exposed via JavaScript getters, which is a key indicator of lazy loading. This change improves diagnostic accuracy by explicitly inspecting property descriptors and validating runtime behavior for commonly used APIs.

Changes Made

Added checks using Object.getOwnPropertyDescriptor to verify APIs are implemented as getters

Improved logging for clearer verification output

Added runtime validation for commonly used APIs (drive, gmail, youtube)

Refactored code for better readability and maintainability

Notes for Reviewers

This script depends on compiled output (build/src); please run npm run compile before execution

No runtime or production code paths were modified

Changes are limited to internal verification tooling

Impact

Improves confidence in the library’s lazy-loading architecture and strengthens internal verification without introducing breaking changes.

…getter-based checks and multi-API validation to verify_lazy.js , Strengthen lazy-loading verification logic in verify_lazy.js
@Deep-code2004 Deep-code2004 requested a review from a team as a code owner December 18, 2025 07:45
@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Dec 18, 2025
@Deep-code2004
Copy link
Author

as soon as check the my contribution and notify me

@feywind feywind added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 18, 2025
@Deep-code2004 Deep-code2004 closed this by deleting the head repository Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing. size: xl Pull request size is extra large.

2 participants