Lines Matching refs:root
22 function testOriginal(root) { argument
23 assert.deepStrictEqual(root, backup);
24 return root.foo.bar === 'baz' && root.quux[1].corge.length === 6;
27 function definePropertyOnRoot(root) { argument
28 Object.defineProperty(root, 'xyzzy', {});
31 function definePropertyOnFoo(root) { argument
32 Object.defineProperty(root.foo, 'xyzzy', {});
35 function deletePropertyOnRoot(root) { argument
36 delete root.foo;
39 function deletePropertyOnFoo(root) { argument
40 delete root.foo.bar;
43 function preventExtensionsOnRoot(root) { argument
44 Object.preventExtensions(root);
47 function preventExtensionsOnFoo(root) { argument
48 Object.preventExtensions(root.foo);
51 function preventExtensionsOnRootViaSeal(root) { argument
52 Object.seal(root);
55 function preventExtensionsOnFooViaSeal(root) { argument
56 Object.seal(root.foo);
59 function preventExtensionsOnRootViaFreeze(root) { argument
60 Object.freeze(root);
63 function preventExtensionsOnFooViaFreeze(root) { argument
64 Object.freeze(root.foo);
67 function setOnRoot(root) { argument
68 root.xyzzy = 'gwak';
71 function setOnFoo(root) { argument
72 root.foo.xyzzy = 'gwak';
75 function setQux(root) { argument
76 root.qux = 'gwak';
79 function setQuux(root) { argument
80 root.quux.push('gwak');
83 function setQuuxItem(root) { argument
84 root.quux[0] = 'gwak';
87 function setQuuxProperty(root) { argument
88 root.quux[1].corge = 'gwak';
91 function setPrototypeOfRoot(root) { argument
92 Object.setPrototypeOf(root, Array);
95 function setPrototypeOfFoo(root) { argument
96 Object.setPrototypeOf(root.foo, Array);
99 function setPrototypeOfQuux(root) { argument
100 Object.setPrototypeOf(root.quux, Array);