mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +00:00
LibJS: Remove implicit wrapping/unwrapping of completion records
This is an editorial change in the ECMA-262 spec, with similar changes in some proposals. See: -7575f74
-df899eb
-9eb5a12
-c81f527
This commit is contained in:
parent
15f32379bb
commit
9f3f3b0864
88 changed files with 792 additions and 735 deletions
|
@ -105,7 +105,7 @@ ThrowCompletionOr<PropertyDescriptor> to_property_descriptor(GlobalObject& globa
|
|||
|
||||
// 4. If hasEnumerable is true, then
|
||||
if (has_enumerable) {
|
||||
// a. Let enumerable be ! ToBoolean(? Get(Obj, "enumerable")).
|
||||
// a. Let enumerable be ToBoolean(? Get(Obj, "enumerable")).
|
||||
auto enumerable = TRY(object.get(vm.names.enumerable)).to_boolean();
|
||||
|
||||
// b. Set desc.[[Enumerable]] to enumerable.
|
||||
|
@ -117,7 +117,7 @@ ThrowCompletionOr<PropertyDescriptor> to_property_descriptor(GlobalObject& globa
|
|||
|
||||
// 6. If hasConfigurable is true, then
|
||||
if (has_configurable) {
|
||||
// a. Let configurable be ! ToBoolean(? Get(Obj, "configurable")).
|
||||
// a. Let configurable be ToBoolean(? Get(Obj, "configurable")).
|
||||
auto configurable = TRY(object.get(vm.names.configurable)).to_boolean();
|
||||
|
||||
// b. Set desc.[[Configurable]] to configurable.
|
||||
|
@ -141,7 +141,7 @@ ThrowCompletionOr<PropertyDescriptor> to_property_descriptor(GlobalObject& globa
|
|||
|
||||
// 10. If hasWritable is true, then
|
||||
if (has_writable) {
|
||||
// a. Let writable be ! ToBoolean(? Get(Obj, "writable")).
|
||||
// a. Let writable be ToBoolean(? Get(Obj, "writable")).
|
||||
auto writable = TRY(object.get(vm.names.writable)).to_boolean();
|
||||
|
||||
// b. Set desc.[[Writable]] to writable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue