Lines Matching defs:obj
15 var obj = {
21 obj.foo = 'baz';
22 obj.lumpy = 'woof';
23 delete obj.prop;
25 var o = Object.freeze(obj);
27 assert(Object.isFrozen(obj) === true);
30 obj.foo = 'quux'; // silently does nothing
31 assert (obj.foo === 'baz');
33 obj.quaxxor = 'the friendly duck'; // silently doesn't add the property
34 assert (obj.quaxxor === undefined);
41 obj.foo = 'sparky'; // throws a TypeError
48 delete obj.foo; // throws a TypeError
55 obj.sparky = 'arf'; // throws a TypeError
67 Object.defineProperty(obj, 'ohai', { value: 17 }); // throws a TypeError
74 Object.defineProperty(obj, 'foo', { value: 'eit' }); // throws a TypeError