Skip to content

Commit 56fa901

Browse files
committed
js::Object: Sort methods alphabetically
1 parent 7936e1e commit 56fa901

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/js.rs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,6 @@ extern {
278278
extern {
279279
pub type Object;
280280

281-
/// The Object constructor creates an object wrapper.
282-
///
283-
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
284-
#[wasm_bindgen(constructor)]
285-
pub fn new() -> Object;
286-
287281
/// The `hasOwnProperty()` method returns a boolean indicating whether the
288282
/// object has the specified property as its own property (as opposed to
289283
/// inheriting it).
@@ -292,34 +286,40 @@ extern {
292286
#[wasm_bindgen(method, js_name = hasOwnProperty)]
293287
pub fn has_own_property(this: &Object, property: &JsValue) -> bool;
294288

295-
/// The toLocaleString() method returns a string representing the object.
296-
/// This method is meant to be overridden by derived objects for locale-specific
297-
/// purposes.
298-
///
299-
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString
300-
#[wasm_bindgen(method, js_name = toLocaleString)]
301-
pub fn to_locale_string(this: &Object) -> JsString;
302-
303-
/// The toString() method returns a string representing the object.
304-
///
305-
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
306-
#[wasm_bindgen(method, js_name = toString)]
307-
pub fn to_string(this: &Object) -> JsString;
308-
309289
/// The isPrototypeOf() method checks if an object exists in another
310290
/// object's prototype chain.
311291
///
312292
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf
313293
#[wasm_bindgen(method, js_name = isPrototypeOf)]
314294
pub fn is_prototype_of(this: &Object, value: &JsValue) -> bool;
315295

296+
/// The Object constructor creates an object wrapper.
297+
///
298+
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
299+
#[wasm_bindgen(constructor)]
300+
pub fn new() -> Object;
301+
316302
/// The propertyIsEnumerable() method returns a Boolean indicating
317303
/// whether the specified property is enumerable.
318304
///
319305
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable
320306
#[wasm_bindgen(method, js_name = propertyIsEnumerable)]
321307
pub fn property_is_enumerable(this: &Object, property: &JsValue) -> bool;
322308

309+
/// The toLocaleString() method returns a string representing the object.
310+
/// This method is meant to be overridden by derived objects for locale-specific
311+
/// purposes.
312+
///
313+
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString
314+
#[wasm_bindgen(method, js_name = toLocaleString)]
315+
pub fn to_locale_string(this: &Object) -> JsString;
316+
317+
/// The toString() method returns a string representing the object.
318+
///
319+
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
320+
#[wasm_bindgen(method, js_name = toString)]
321+
pub fn to_string(this: &Object) -> JsString;
322+
323323
/// The valueOf() method returns the primitive value of the
324324
/// specified object.
325325
///

0 commit comments

Comments
 (0)