Node and web standard library for the ferrijs QuickJS runtime: WHATWG Streams, Events, AbortController, Buffer, crypto, fs, os, url, zlib and the capability model they enforce (partly derived from awslabs/llrt, Apache-2.0).
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
userquickjs::{Ctx, Object,Result};// LOCAL DELTA: upstream hardcodes `llrt <version>`; the runtime's own
// name comes from `crate::identity`, which the host sets.
pubfninit(ctx:&Ctx<'_>)->Result<()>{let globals = ctx.globals();let navigator =Object::new(ctx.clone())?;
navigator.set("userAgent",crate::identity::get(ctx).user_agent())?;
globals.set("navigator", navigator)?;Ok(())}