Lines Matching full:reflect
28 // Tests the Reflect.defineProperty method - ES6 26.1.3
37 Reflect.defineProperty(null, null, null);
47 Reflect.defineProperty(undefined, undefined, undefined);
57 Reflect.defineProperty(0, "foo", undefined);
117 assertThrows(function() { Reflect.defineProperty(obj1, "foo", undefined) },
122 assertTrue(Reflect.defineProperty(obj1, "foo", emptyDesc));
144 assertFalse(Reflect.defineProperty(obj1, "foo", accessorConfigurable));
149 assertTrue(Reflect.defineProperty(obj1, "bar", accessorConfigurable));
164 assertTrue(Reflect.defineProperty(obj1, "bar", accessorNoConfigurable));
181 assertFalse(Reflect.defineProperty(obj1, "bar", accessorConfigurable));
184 assertFalse(Reflect.defineProperty(obj1, "bar", dataConfigurable));
187 assertTrue(Reflect.defineProperty(obj1, "bar", accessorNoConfigurable));
204 assertTrue(Reflect.defineProperty(obj1, "setOnly", accessorOnlySet));
216 assertTrue(Reflect.defineProperty(obj1, "setOnly", accessorOnlyGet));
229 assertTrue(Reflect.defineProperty(obj1, "both", accessorConfigurable));
231 assertTrue(Reflect.defineProperty(obj1, "both", accessorOnlySet));
245 assertTrue(Reflect.defineProperty(obj1, "foobar", dataConfigurable));
260 assertTrue(Reflect.defineProperty(obj1, "foobar", dataWritable));
277 assertTrue(Reflect.defineProperty(obj1, "foobar", dataNoConfigurable));
288 assertFalse(Reflect.defineProperty(obj1, "foobar", dataConfigurable));
291 assertFalse(Reflect.defineProperty(obj1, "foobar", dataConfigurable));
295 assertTrue(Reflect.defineProperty(obj1, "foobar", dataNoConfigurable));
310 assertTrue(Reflect.defineProperty(obj2, "foo", accessorConfigurable));
313 assertTrue(Reflect.defineProperty(obj2, "foo", dataConfigurable));
325 assertTrue(Reflect.defineProperty(obj2, "foo", accessorConfigurable));
339 assertTrue(Reflect.defineProperty(obj2, "bar", dataConfigurable))
342 assertTrue(Reflect.defineProperty(obj2, "bar", accessorConfigurable));
356 assertTrue(Reflect.defineProperty(obj2, "bar", dataConfigurable));
389 assertTrue(Reflect.defineProperty(obj3, "foo", accessorNoConfigurable));
407 assertTrue(Reflect.defineProperty(obj3, "bar", dataConfigurable));
423 assertTrue(Reflect.defineProperty(obj4, "bar", accessorConfigurable));
473 assertTrue(Reflect.defineProperty(obj5, 'foo', accessorNoConfigurable));
477 assertTrue(Reflect.defineProperty(obj5, 'foo', accessorNoConfigurable));
487 assertFalse(Reflect.defineProperty(obj5, 'foo', descDifferent));
497 assertFalse(Reflect.defineProperty(obj5, 'foo', descDifferent));
507 assertFalse(Reflect
517 assertFalse(Reflect.defineProperty(obj5, 'foo', descDifferent));
527 assertTrue(Reflect.defineProperty(obj5, 'foo', descDifferent));
539 assertTrue(Reflect.defineProperty(obj5, 'bar', dataNoConfigurable));
542 assertTrue(Reflect.defineProperty(obj5, 'bar', dataNoConfigurable));
552 assertFalse(Reflect.defineProperty(obj5, 'bar', descDifferent));
562 assertFalse(Reflect.defineProperty(obj5, 'bar', descDifferent));
573 assertFalse(Reflect.defineProperty(obj5, 'bar', descDifferent));
584 assertFalse(Reflect.defineProperty(obj5, 'bar', descDifferent));
594 assertTrue(Reflect.defineProperty(obj5, 'bar', descDifferent));
608 assertTrue(Reflect.defineProperty(obj5, 'minuszero', descMinusZero));
611 assertTrue(Reflect.defineProperty(obj5, 'minuszero', descMinusZero));
613 assertFalse(Reflect.defineProperty(obj5, 'minuszero', descPlusZero));
616 assertTrue(Reflect.defineProperty(obj5, 'pluszero', descPlusZero));
619 assertTrue(Reflect.defineProperty(obj5, 'pluszero', descPlusZero));
621 assertFalse(Reflect.defineProperty(obj5, 'pluszero', descMinusZero));
642 assertTrue(Reflect.defineProperty(obj6, '1', descElement));
650 assertTrue(Reflect.defineProperty(obj6, '2', descElementNonConfigurable));
660 assertTrue(Reflect.defineProperty(obj6, '2', descElement));
670 assertFalse(Reflect.defineProperty(obj6, '2', descAccessor));
672 assertTrue(Reflect.defineProperty(obj6, '2', descElementNonWritable));
679 assertTrue(Reflect.defineProperty(obj6, '3', descElementNonWritable));
687 assertTrue(Reflect.defineProperty(obj6, '4', descElementNonEnumerable));
695 assertTrue(Reflect.defineProperty(obj6, '5', descElementAllFalse));
703 assertTrue(Reflect.defineProperty(obj6, '15', descElement));
734 assertTrue(Reflect.defineProperty(arr, '1', descElement));
742 assertTrue(Reflect.defineProperty(arr, '2', descElementNonConfigurable));
752 assertTrue(Reflect.defineProperty(arr, '2', descElement));
762 assertFalse(Reflect.defineProperty(arr, '2', descAccessor));
764 assertTrue(Reflect.defineProperty(arr, '2', descElementNonWritable));
771 assertTrue(Reflect.defineProperty(arr, '3', descElementNonWritable));
779 assertTrue(Reflect.defineProperty(arr, '4', descElementNonEnumerable));
787 assertTrue(Reflect.defineProperty(arr, '5', descElementAllFalse));
795 assertTrue(Reflect.defineProperty(arr, '15', descElement));
804 assertTrue(Reflect.defineProperty(arr, '0x20', descElement));
809 assertTrue(Reflect.defineProperty(o, "x", { writable: false }));
815 assertTrue(Reflect.defineProperty(o, "x", {}));
822 assertTrue(Reflect.defineProperty(o, "x", { writable: false }));
828 assertTrue(Reflect.defineProperty(o, "x", { writable: false }));
835 assertTrue(Reflect.defineProperty(o, "x", { writable: false }));
841 assertTrue(Reflect.defineProperty(obj, propertyName, desc));
906 assertTrue(Reflect.defineProperty(o, 'p', { configurable: false }));
913 assertTrue(Reflect.defineProperty(o, 'p',
921 assertTrue(Reflect.defineProperty(o, 'p',
929 assertTrue(Reflect.defineProperty(o, 'p',
940 assertTrue(Reflect.defineProperty(o, i, {value: i, enumerable: false}));
950 Reflect.defineProperty(arguments, "0", {
955 Reflect.defineProperty(arguments, "0", {
960 Reflect.defineProperty(arguments, "0", {
987 Reflect.defineProperty(obj1, "quebec", { get: getter, configurable: true }));
997 assertTrue(Reflect.defineProperty(obj1, "quebec", { get: anotherGetter }));
1018 Reflect.defineProperty(obj1, "romeo", { set: setter, configurable: true }));
1028 assertTrue(Reflect.defineProperty(obj1, "romeo", { set: anotherSetter }));
1043 assertTrue(Reflect.defineProperty(obj1, "sierra",
1054 assertTrue(Reflect.defineProperty(obj1, "sierra",
1080 Reflect.defineProperty(C.prototype, "blubb", {get: function() {return -42}}));