awslabs / llrt

LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
Apache License 2.0
7.76k stars 342 forks source link

feat: implement globalThis.navigator.userAgent #290

Closed nabetti1720 closed 3 months ago

nabetti1720 commented 3 months ago

Description of changes

The Minimum Common Web Platform API is being considered at WinterCG. I implemented one of the APIs, globalThis.navigator.userAgent.

This is my first time coding in the rust language, so I will promote it as a draft version. Please point out if it does not follow llrt or rust conventions.

Local execution results

image

Checklist

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.