Commit f3a94631 authored by Philip Chimento's avatar Philip Chimento

object: Use is_custom_js_class() for readability

This expresses the intention more clearly than checking if info() is
null.
parent fc791300
...@@ -935,7 +935,7 @@ bool ObjectPrototype::new_enumerate_impl(JSContext* cx, JS::HandleObject obj, ...@@ -935,7 +935,7 @@ bool ObjectPrototype::new_enumerate_impl(JSContext* cx, JS::HandleObject obj,
g_free(interfaces); g_free(interfaces);
if (info()) { if (!is_custom_js_class()) {
// Methods // Methods
int n_methods = g_object_info_get_n_methods(info()); int n_methods = g_object_info_get_n_methods(info());
for (int i = 0; i < n_methods; i++) { for (int i = 0; i < n_methods; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment