public bool TryConvert(Engine engine, object value, out JsValue result) { switch (value) { case Guid g: result = new JsUuid(g); return(true); } result = JsValue.Undefined; return(false); }
public UuidInstance Construct(JsUuid uuid) => new UuidInstance(Engine) { PrimitiveValue = uuid, _prototype = PrototypeObject };