Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Jint/Native/Global/GlobalObject.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public partial class GlobalObject
private static readonly Key propertyIterator = "Iterator";
private static readonly Key propertyIntl = "Intl";
private static readonly Key propertyJSON = "JSON";
private static readonly Key propertyTemporal = "Temporal";
private static readonly Key propertyMap = "Map";
private static readonly Key propertyMath = "Math";
private static readonly Key propertyNumber = "Number";
Expand Down Expand Up @@ -112,6 +113,7 @@ protected override void Initialize()
properties.AddDangerous(propertyInt8Array, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Int8Array, PropertyFlags));
properties.AddDangerous(propertyIntl, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Intl, PropertyFlags));
properties.AddDangerous(propertyIterator, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Iterator, PropertyFlags));
properties.AddDangerous(propertyTemporal, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Temporal, PropertyFlags));
properties.AddDangerous(propertyJSON, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Json, PropertyFlags));
properties.AddDangerous(propertyMap, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Map, PropertyFlags));
properties.AddDangerous(propertyMath, new LazyPropertyDescriptor<GlobalObject>(this, static global => global._realm.Intrinsics.Math, PropertyFlags));
Expand Down
25 changes: 25 additions & 0 deletions Jint/Native/JsValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,31 @@ internal JsValue(InternalTypes type)
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsConstructor => false;

// Temporal type checks
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalDuration => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalInstant => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalPlainDate => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalPlainDateTime => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalPlainMonthDay => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalPlainTime => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalPlainYearMonth => false;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
internal virtual bool IsTemporalZonedDateTime => false;

internal bool IsEmpty => ReferenceEquals(this, JsEmpty.Instance);

[Pure]
Expand Down
Loading