Skip to content

Commit

Permalink
Bug 1698127 - wasm: Add parentheses around macro terms. r=lth
Browse files Browse the repository at this point in the history
  • Loading branch information
eqrion committed Mar 18, 2021
1 parent 4089053 commit 9c7df94
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions js/src/wasm/TypedObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,29 +635,29 @@ const ObjectOps TypedObject::objectOps_ = {
nullptr, // funToString
};

#define DEFINE_TYPEDOBJ_CLASS(Name, Trace, Finalize, Moved, Flags) \
static const JSClassOps Name##ClassOps = { \
nullptr, /* addProperty */ \
nullptr, /* delProperty */ \
nullptr, /* enumerate */ \
TypedObject::obj_newEnumerate, \
nullptr, /* resolve */ \
nullptr, /* mayResolve */ \
Finalize, /* finalize */ \
nullptr, /* call */ \
nullptr, /* hasInstance */ \
nullptr, /* construct */ \
Trace, \
}; \
static const ClassExtension Name##ClassExt = { \
Moved /* objectMovedOp */ \
}; \
const JSClass Name::class_ = { \
#Name, \
JSClass::NON_NATIVE | JSCLASS_DELAY_METADATA_BUILDER | Flags, \
&Name##ClassOps, \
JS_NULL_CLASS_SPEC, \
&Name##ClassExt, \
#define DEFINE_TYPEDOBJ_CLASS(Name, Trace, Finalize, Moved, Flags) \
static const JSClassOps Name##ClassOps = { \
nullptr, /* addProperty */ \
nullptr, /* delProperty */ \
nullptr, /* enumerate */ \
TypedObject::obj_newEnumerate, \
nullptr, /* resolve */ \
nullptr, /* mayResolve */ \
Finalize, /* finalize */ \
nullptr, /* call */ \
nullptr, /* hasInstance */ \
nullptr, /* construct */ \
Trace, \
}; \
static const ClassExtension Name##ClassExt = { \
Moved /* objectMovedOp */ \
}; \
const JSClass Name::class_ = { \
#Name, \
JSClass::NON_NATIVE | JSCLASS_DELAY_METADATA_BUILDER | (Flags), \
&Name##ClassOps, \
JS_NULL_CLASS_SPEC, \
&Name##ClassExt, \
&TypedObject::objectOps_}

DEFINE_TYPEDOBJ_CLASS(OutlineTypedObject, OutlineTypedObject::obj_trace,
Expand Down

0 comments on commit 9c7df94

Please sign in to comment.