- From: ExE Boss <notifications@github.com>
- Date: Fri, 03 Sep 2021 09:47:28 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 3 September 2021 16:47:41 UTC
> it seems like the correct test would be that name appears _right after_ length, right? So the test262 test is not as fully strict as it could be. Actually, [the test262 test](https://github.com/tc39/test262/blob/7fc0484aafa601cc411c2434cfac062559a136fe/test/built-ins/Function/property-order.js#L14) checks exactly that using: `nameIndex === lengthIndex + 1` ```js assert(lengthIndex >= 0 && nameIndex === lengthIndex + 1, "The `length` property comes before the `name` property on built-in functions"); ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/914#issuecomment-912673144
Received on Friday, 3 September 2021 16:47:41 UTC