Skip to content

Fixes JSX attribute escaping when parent pointers are missing - #35743

Merged
Ron Buckton (rbuckton) merged 2 commits into
masterfrom
fix35054
Jan 31, 2020
Merged

Fixes JSX attribute escaping when parent pointers are missing#35743
Ron Buckton (rbuckton) merged 2 commits into
masterfrom
fix35054

Conversation

@rbuckton

Copy link
Copy Markdown
Contributor

This ensures we use the correct character escaping mechanism when emitting a synthetic or unparented StringLiteral that is the initializer of a JsxAttribute.

Fixes #35054

Comment thread src/compiler/utilities.ts
}

/** Given a symbol for a module, checks that it is a shorthand ambient module. */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

look like this diff happened by mistake

@sandersn

Copy link
Copy Markdown
Member

Ron Buckton (@rbuckton) is this ready to go in?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Printer breaks when there is \ in string literal in jsx attrs

4 participants