Re: [heycam/webidl] Normative: Match ECMA‑262 function property enumeration order (#914)

> 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