From 13e74eb23f7bb5a25e2c090c5b4b62e20b7388cc Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Sat, 15 Feb 2025 12:24:42 -0500 Subject: [PATCH] Editorial: Replace open TODO with an explanatory note Ref #31 --- spec.emu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.emu b/spec.emu index 9731cfe..fb13c44 100644 --- a/spec.emu +++ b/spec.emu @@ -657,7 +657,7 @@ contributors: Mark S. Miller, Richard Gibson 1. Let _first_ be _bounds_.[[From]]. 1. Let _final_ be _bounds_.[[To]]. 1. Let _newLen_ be _final_ - _first_. - 1. TODO: Confirm this strictness vs. `slice` (rejecting negative _newLen_ rather than clamping to 0). + 1. NOTE: This differs from , which instead clamps _newLen_ to be non-negative. 1. If _newLen_ < 0, throw a *RangeError* exception. 1. NOTE: Side-effects of the above steps may have detached or resized _O_. 1. If IsDetachedBuffer(_O_) is *true*, throw a *TypeError* exception.