diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-10 23:34:34 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-10 23:34:34 +0100 |
commit | f9ad6258221d89d8ee8e543c2ff8b21a42dbd285 (patch) | |
tree | 70e65826e12ca2424c91f94c21447ddcaa9f4f67 /js/src/builtin | |
parent | c43a68113f85a66b827fdd059886f0aba23e1a55 (diff) | |
download | uxp-f9ad6258221d89d8ee8e543c2ff8b21a42dbd285.tar.gz |
Issue #2342 - Fix attribute order in misc files (found by clang builds)
Diffstat (limited to 'js/src/builtin')
-rw-r--r-- | js/src/builtin/SymbolObject.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/src/builtin/SymbolObject.h b/js/src/builtin/SymbolObject.h index 96d8010bdd..49f608583c 100644 --- a/js/src/builtin/SymbolObject.h +++ b/js/src/builtin/SymbolObject.h @@ -38,22 +38,22 @@ class SymbolObject : public NativeObject setFixedSlot(PRIMITIVE_VALUE_SLOT, SymbolValue(symbol)); } - static [[nodiscard]] bool construct(JSContext* cx, unsigned argc, Value* vp); + [[nodiscard]] static bool construct(JSContext* cx, unsigned argc, Value* vp); // Static methods. - static [[nodiscard]] bool for_(JSContext* cx, unsigned argc, Value* vp); - static [[nodiscard]] bool keyFor(JSContext* cx, unsigned argc, Value* vp); + [[nodiscard]] static bool for_(JSContext* cx, unsigned argc, Value* vp); + [[nodiscard]] static bool keyFor(JSContext* cx, unsigned argc, Value* vp); // Methods defined on Symbol.prototype. - static [[nodiscard]] bool toString_impl(JSContext* cx, const CallArgs& args); - static [[nodiscard]] bool toString(JSContext* cx, unsigned argc, Value* vp); - static [[nodiscard]] bool valueOf_impl(JSContext* cx, const CallArgs& args); - static [[nodiscard]] bool valueOf(JSContext* cx, unsigned argc, Value* vp); - static [[nodiscard]] bool toPrimitive(JSContext* cx, unsigned argc, Value* vp); + [[nodiscard]] static bool toString_impl(JSContext* cx, const CallArgs& args); + [[nodiscard]] static bool toString(JSContext* cx, unsigned argc, Value* vp); + [[nodiscard]] static bool valueOf_impl(JSContext* cx, const CallArgs& args); + [[nodiscard]] static bool valueOf(JSContext* cx, unsigned argc, Value* vp); + [[nodiscard]] static bool toPrimitive(JSContext* cx, unsigned argc, Value* vp); // Properties defined on Symbol.prototype. - static [[nodiscard]] bool descriptionGetter_impl(JSContext* cx, const CallArgs& args); - static [[nodiscard]] bool descriptionGetter(JSContext* cx, unsigned argc, Value *vp); + [[nodiscard]] static bool descriptionGetter_impl(JSContext* cx, const CallArgs& args); + [[nodiscard]] static bool descriptionGetter(JSContext* cx, unsigned argc, Value *vp); static const JSPropertySpec properties[]; static const JSFunctionSpec methods[]; |