Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 3, 2023
1 parent 2600f6f commit f89de89
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -178,7 +178,7 @@ JS::Result<mozilla::Ok> ObjectToSource(JSContext *cx, std::string &sourceOut, JS
JS::Rooted<mozilla::Maybe<JS::PropertyDescriptor>> desc(cx);
JS_GetOwnPropertyDescriptorById(cx, obj, id, &desc);

bool getter_setter = desc.isNothing() && (desc->hasGetter() || desc->hasSetter());
bool getter_setter = !desc.isNothing() && (desc->hasGetter() || desc->hasSetter());

// retrive the value if not a getter or setter
if (!getter_setter) {
Expand Down

0 comments on commit f89de89

Please sign in to comment.