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

Write boolean value when saving a form (bug 1729971) #13998

Merged
merged 1 commit into from
Sep 12, 2021

Conversation

calixteman
Copy link
Contributor

@calixteman
Copy link
Contributor Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 1

Live output at: http://54.241.84.105:8877/ca07fb9b0d7e27f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 2

Live output at: http://54.193.163.58:8877/9a1439ec2ba8769/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/ca07fb9b0d7e27f/output.txt

Total script time: 2.82 mins

  • Unit Tests: Passed

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me with that comment addressed; thank you!

@@ -83,10 +83,14 @@ function writeValue(value, buffer, transform) {
buffer.push(`(${escapeString(value)})`);
} else if (typeof value === "number") {
buffer.push(numberToString(value));
} else if (typeof value === "boolean") {
buffer.push(`${value.toString()}`);
Copy link
Collaborator

@Snuffleupagus Snuffleupagus Sep 10, 2021

Choose a reason for hiding this comment

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

I might be missing something obvious here, but why do you need to wrap this in a string?
Isn't value.toString() already a string, in which case just buffer.push(value.toString()); ought to work.

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/9a1439ec2ba8769/output.txt

Total script time: 7.00 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

Looks good to me too with the comment above addressed.

@Snuffleupagus
Copy link
Collaborator

Actually, let's land this as-is such that it won't just miss the upcoming release and we can fix the comment in a follow-up.

@Snuffleupagus Snuffleupagus merged commit 761519e into mozilla:master Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants