Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 2842b7e

Browse files
authored
[[GetOwnProperty]] → Undefined | Property Descriptor (#363)
The [[GetOwnProperty]] algorithm for Tuple exotic objects has an early exit step for symbol keys, but the step returned `false`, which isn’t a possible [[GetOwnProperty]] return value. It should return `undefined`. (TEO’s [[DefineOwnProperty]] never permits definition of such a property, so it’s known not to exist. The explicit early exit is not redundant, though, because the subsequent CanonicalNumericIndexString(P) only has defined behavior for string input.)
1 parent a082478 commit 2842b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ordinary-and-exotic-object-behaviours.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>[[GetOwnProperty]] ( _P_ )</h1>
3131
</dl>
3232
<emu-alg>
3333
1. Assert: IsPropertyKey(_P_) is *true*.
34-
1. If Type(_P_) is a Symbol, return *false*.
34+
1. If Type(_P_) is a Symbol, return *undefined*.
3535
1. If _P_ is *"length"*, then
3636
1. Let _length_ be the length of _T_.[[Sequence]].
3737
1. Return the PropertyDescriptor { [[Value]]: 𝔽(_length_), [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.

0 commit comments

Comments
 (0)