Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:object

28 // Tests the Object.defineProperties method - ES 15.2.3.7
30 // object-define-property.js, this file only contains tests specific for
31 // Object.defineProperties. Also note that object-create.js contains
32 // a range of indirect tests on this method since Object.create uses
33 // Object.defineProperties as a step in setting up the object.
37 Object.defineProperties({}, null);
39 assertTrue(/null to object/.test(e));
42 // Try defining with null as object
44 Object.defineProperties(null, {});
46 assertTrue(/called on non-object/.test(e));
52 // Check that we actually get the object back as returnvalue
53 var x = Object.defineProperties(obj, desc);
62 var object = {};
65 Object.defineProperties(object, {
71 assertEquals(undefined, object.foo);
72 assertEquals(undefined, object.bar);