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
20 changes: 1 addition & 19 deletions nova_vm/src/ecmascript/builtins/temporal/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub(crate) fn create_temporal_duration<'gc>(
/// language value) and returns either a normal completion containing a
/// Temporal.Duration or a throw completion. Converts item to a new
/// Temporal.Duration instance if possible and returns that, and throws
/// otherwise. It performs the following steps when called:
/// otherwise.
pub(crate) fn to_temporal_duration<'gc>(
agent: &mut Agent,
item: Value,
Expand Down Expand Up @@ -384,24 +384,6 @@ pub(crate) fn to_temporal_partial_duration_record<'gc>(
Ok(result)
}

/// [7.5.20 CreateNegatedTemporalDuration ( duration )] (https://tc39.es/proposal-temporal/#sec-temporal-createnegatedtemporalduration)
/// The abstract operation CreateNegatedTemporalDuration takes argument
/// duration (a Temporal.Duration) and returns a Temporal.Duration.
/// It returns a new Temporal.Duration instance that is the
/// negation of duration.
pub(crate) fn _create_negated_temporal_duration<'gc>(
_agent: &mut Agent,
_item: temporal_rs::Duration,
mut _gc: GcScope<'gc, '_>,
) -> JsResult<'gc, temporal_rs::Duration> {
// 1. Return ! CreateTemporalDuration(-duration.[[Years]],
// -duration.[[Months]], -duration.[[Weeks]], -duration.[[Days]],
// -duration.[[Hours]], -duration.[[Minutes]], -duration.[[Seconds]],
// -duration.[[Milliseconds]], -duration.[[Microseconds]],
// -duration.[[Nanoseconds]]).
unimplemented!()
}

#[inline(always)]
pub(crate) fn _require_internal_slot_temporal_duration<'a>(
agent: &mut Agent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ impl TemporalInstantPrototype {
/// The abstract operation ToIntegerWithTruncation takes argument argument (an ECMAScript language
/// value) and returns either a normal completion containing an integer or a throw completion. It
/// converts argument to an integer representing its Number value with fractional part truncated, or
/// throws a RangeError when that value is not finite. It performs the following steps when called:
/// throws a RangeError when that value is not finite.
pub(crate) fn to_integer_with_truncation<'gc>(
agent: &mut Agent,
argument: Value,
Expand Down
4 changes: 2 additions & 2 deletions nova_vm/src/ecmascript/builtins/temporal/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ where
// The abstract operation GetRoundingModeOption takes arguments options (an Object) and fallback (a
// rounding mode) and returns either a normal completion containing a rounding mode, or a throw
// completion. It fetches and validates the "roundingMode" property from options, returning
// fallback as a default if absent. It performs the following steps when called:
// fallback as a default if absent.
pub(crate) fn get_rounding_mode_option<'gc>(
agent: &mut Agent,
options: Object,
Expand Down Expand Up @@ -179,7 +179,7 @@ pub(crate) fn get_rounding_mode_option<'gc>(
/// Object) and returns either a normal completion containing a positive integer
/// in the inclusive interval from 1 to 10**9, or a throw completion. It fetches
/// and validates the "roundingIncrement" property from options, returning a
/// default if absent. It performs the following steps when called:
/// default if absent.
pub(crate) fn get_rounding_increment_option<'gc>(
agent: &mut Agent,
options: Object,
Expand Down
2 changes: 1 addition & 1 deletion nova_vm/src/ecmascript/execution/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub(crate) enum InnerJob {
FinalizationRegistry(FinalizationRegistryCleanupJob),
}

/// ## [Job](https://tc39.es/ecma262/#sec-jobs)
/// # [Job](https://tc39.es/ecma262/#sec-jobs)
///
/// A _Job_ is an Abstract Closure with no parameters that initiates an
/// ECMAScript computation when no other ECMAScript computation is currently in
Expand Down
2 changes: 1 addition & 1 deletion nova_vm/src/ecmascript/types/spec/data_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl WaiterLists {
}
}

/// # [6.2.9 Data Blocks](https://tc39.es/ecma262/#sec-data-blocks)
/// ### [6.2.9 Data Blocks](https://tc39.es/ecma262/#sec-data-blocks)
///
/// The Shared Data Block specification type is used to describe a distinct and
/// mutable sequence of byte-sized (8 bit) racy atomic memory values. A byte
Expand Down