Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Jan 24, 2024
1 parent 010f659 commit 6bc1f4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions crates/oxc_codegen/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ impl<const MINIFY: bool> Gen<MINIFY> for Directive {
// A Use Strict Directive may not contain an EscapeSequence or LineContinuation.
// So here should print original `directive` value, the `expression` value is escaped str.
// See https://github.com/babel/babel/blob/main/packages/babel-generator/src/generators/base.ts#L64
let quote = choose_quote(self.directive.as_str());
p.print(quote as u8);
p.print_str(self.directive.as_str().to_string().as_bytes());
p.print(quote as u8);
p.print_semicolon();
}
}
Expand Down
7 changes: 5 additions & 2 deletions tasks/transform_conformance/babel.snap.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Passed: 327/1369
Passed: 325/1369

# All Passed:
* babel-plugin-transform-numeric-separator
* babel-plugin-transform-optional-catch-binding
* babel-plugin-transform-json-strings
* babel-plugin-transform-shorthand-properties
* babel-plugin-transform-sticky-regex
* babel-plugin-transform-instanceof
Expand Down Expand Up @@ -608,6 +607,10 @@ Passed: 327/1369
* transparent-expr-wrappers/ts-as-member-expression/input.ts
* transparent-expr-wrappers/ts-parenthesized-expression-member-call/input.ts

# babel-plugin-transform-json-strings (2/4)
* json-strings/directive-line-separator/input.js
* json-strings/directive-paragraph-separator/input.js

# babel-plugin-transform-async-generator-functions (0/22)
* async-generators/class-method/input.js
* async-generators/class-private-method/input.js
Expand Down

0 comments on commit 6bc1f4b

Please sign in to comment.