@@ -278,12 +278,6 @@ extern {
278
278
extern {
279
279
pub type Object ;
280
280
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
-
287
281
/// The `hasOwnProperty()` method returns a boolean indicating whether the
288
282
/// object has the specified property as its own property (as opposed to
289
283
/// inheriting it).
@@ -292,34 +286,40 @@ extern {
292
286
#[ wasm_bindgen( method, js_name = hasOwnProperty) ]
293
287
pub fn has_own_property ( this : & Object , property : & JsValue ) -> bool ;
294
288
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
-
309
289
/// The isPrototypeOf() method checks if an object exists in another
310
290
/// object's prototype chain.
311
291
///
312
292
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf
313
293
#[ wasm_bindgen( method, js_name = isPrototypeOf) ]
314
294
pub fn is_prototype_of ( this : & Object , value : & JsValue ) -> bool ;
315
295
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
+
316
302
/// The propertyIsEnumerable() method returns a Boolean indicating
317
303
/// whether the specified property is enumerable.
318
304
///
319
305
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable
320
306
#[ wasm_bindgen( method, js_name = propertyIsEnumerable) ]
321
307
pub fn property_is_enumerable ( this : & Object , property : & JsValue ) -> bool ;
322
308
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
+
323
323
/// The valueOf() method returns the primitive value of the
324
324
/// specified object.
325
325
///
0 commit comments