Skip to content

transformer: incorrect temporary variable name  #5371

@Boshen

Description

@Boshen

in:

output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"]

out:

var _output$headers$x-amzn-requestid;
(_output$headers$x-amzn-requestid = output.headers["x-amzn-requestid"]) !== null && _output$headers$x-amzn-requestid !== void 0 ? _output$headers$x-amzn-requestid : output.headers["x-amzn-request-id"];

expected

var _output$headers$xAmz;
(_output$headers$xAmz = output.headers["x-amzn-requestid"]) !== null && _output$headers$xAmz !== void 0 ? _output$headers$xAmz : output.headers["x-amzn-request-id"];

https://github.com/oxc-project/monitor-oxc/actions/runs/10646542195/job/29513518443

Note there's also other cases such as options['grpc.enable_http_proxy'] ?? 1

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions