Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace RequireObjectCoercible with Object check #290

Merged
merged 3 commits into from Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions spec.html
Expand Up @@ -119,15 +119,16 @@ <h1>
<dl class="header">
</dl>
<emu-alg>
1. Let _O_ be ? RequireObjectCoercible(_this_).
1. If _O_ is _home_, then
1. If _this_ is not an Object, then
1. Throw a *TypeError* exception.
1. If _this_ is _home_, then
1. NOTE: Throwing here emulates assignment to a non-writable data property on the _home_ object in strict mode code.
1. Throw a *TypeError* exception.
1. Let _desc_ be ? _O_.[[GetOwnProperty]](_p_).
1. Let _desc_ be ? _this_.[[GetOwnProperty]](_p_).
1. If _desc_ is *undefined*, then
1. Perform ? CreateDataPropertyOrThrow(_O_, _p_, _v_).
1. Perform ? CreateDataPropertyOrThrow(_this_, _p_, _v_).
1. Else,
1. Perform ? Set(_O_, _p_, _v_, *true*).
1. Perform ? Set(_this_, _p_, _v_, *true*).
1. Return ~unused~.
</emu-alg>
</emu-clause>
Expand Down