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

pass all string decoder tests #15723

Merged
merged 10 commits into from
Dec 12, 2024
Merged

pass all string decoder tests #15723

merged 10 commits into from
Dec 12, 2024

Conversation

paperdave
Copy link
Member

originally, i wanted to use bindgen for the string decoder class.

instead, i just fixed the bugs. this class is a mess. ideally after this pr the code wont have to be edited since it is now 100% passing, and its a legacy api node hasn't touched in forever.

@robobun
Copy link

robobun commented Dec 12, 2024

@Jarred-Sumner, your commit e707cf8 has some failures in #7889

@@ -75,14 +75,14 @@ enum Bound {

namespace ERR {

JSC::EncodedJSValue INVALID_ARG_TYPE(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, const WTF::String& val_arg_name, const WTF::String& val_expected_type, JSC::JSValue val_actual_value);
JSC::EncodedJSValue INVALID_ARG_TYPE(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, JSC::JSValue val_arg_name, const WTF::String& val_expected_type, JSC::JSValue val_actual_value);
JSC::EncodedJSValue INVALID_ARG_TYPE(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, const WTF::ASCIILiteral& arg_name, const WTF::ASCIILiteral& expected_type, JSC::JSValue val_actual_value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
JSC::EncodedJSValue INVALID_ARG_TYPE(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, const WTF::ASCIILiteral& arg_name, const WTF::ASCIILiteral& expected_type, JSC::JSValue val_actual_value);
JSC::EncodedJSValue INVALID_ARG_TYPE(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, const WTF::ASCIILiteral& arg_name, WTF::ASCIILiteral expected_type, JSC::JSValue val_actual_value);

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

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

LGTM

Extremely minor nitpicks

@Jarred-Sumner Jarred-Sumner merged commit 79dc13c into main Dec 12, 2024
5 of 21 checks passed
@Jarred-Sumner Jarred-Sumner deleted the dave/string-decoder branch December 12, 2024 09:35
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.

3 participants