Skip to content

fix(storage-control): re-compile protos in librarian.js after renaming Object - #9844

Draft
quirogas wants to merge 2 commits into
chore/storage-control-release-please-separatefrom
fix/storage-control-librarian-js-compile-protos
Draft

quirogas wants to merge 2 commits into
chore/storage-control-release-please-separatefrom
fix/storage-control-librarian-js-compile-protos

Conversation

@quirogas

@quirogas quirogas commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Re-runs npm run compile-protos inside packages/google-storage-control/librarian.js after storage_control_utils.js renames message Object to message StorageObject, preventing pbjs from shadowing global Object.defineProperty (b/582921805).

…g Object

Re-runs `npm run compile-protos` inside `packages/google-storage-control/librarian.js` after `storage_control_utils.js` renames `message Object` to `message StorageObject` in `storage.proto` so `protos/protos.js` does not shadow global `Object`.
@quirogas
quirogas added this pull request to stack #9846 November 9, 2026 02:18

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds an extra compile-protos execution step in librarian.js for the google-storage-control package. This step ensures that protos are re-compiled after storage_control_utils.js renames Object to StorageObject, preventing the generated JS code from shadowing the global JavaScript Object class. There are no review comments, and I have no feedback to provide.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant