Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix compiled-mode error formatting #5623

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

joeyparrish
Copy link
Member

We declare shaka.util.Error to extend the native Error, but only supplied a message field in uncompiled and debug modes. This broke the Jasmine test framework when it tried to extract error message information from a compiled-mode shaka.util.Error object.

Now we always supply a message object, and merely skip the fancy enum formatting in compiled mode.

We declare shaka.util.Error to extend the native Error, but only supplied a message field in uncompiled and debug modes.  This broke the Jasmine test framework when it tried to extract error message information from a compiled-mode shaka.util.Error object.

Now we always supply a message object, and merely skip the fancy enum formatting in compiled mode.
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@joeyparrish joeyparrish merged commit a19912e into shaka-project:main Sep 8, 2023
17 checks passed
@joeyparrish joeyparrish deleted the fix-error-formatting branch September 8, 2023 20:30
joeyparrish added a commit that referenced this pull request Sep 13, 2023
We declare shaka.util.Error to extend the native Error, but only supplied a message field in uncompiled and debug modes.  This broke the Jasmine test framework when it tried to extract error message information from a compiled-mode shaka.util.Error object.

Now we always supply a message object, and merely skip the fancy enum formatting in compiled mode.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Nov 7, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants