Home
last modified time | relevance | path

Searched refs:defineProperty (Results 1 – 25 of 1322) sorted by relevance

12345678910>>...53

/third_party/typescript/tests/baselines/reference/
DprivacyAccessorDeclFile.js1063 Object.defineProperty(exports, "__esModule", { value: true });
1079 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", {
1086 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", {
1093 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", {
1100 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", {
1107 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", {
1114 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", {
1121 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", {
1128 … Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod1", {
1141 Object.defineProperty(publicClassWithWithPublicGetAccessorTypes, "myPublicStaticMethod", {
[all …]
DdefineProperty(target=esnext).symbols1 === tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts ===
3 >x : Symbol(x, Decl(defineProperty.ts, 0, 3))
6 >A : Symbol(A, Decl(defineProperty.ts, 0, 16))
9 >a : Symbol(A.a, Decl(defineProperty.ts, 1, 9))
10 >this.y : Symbol(A.y, Decl(defineProperty.ts, 8, 16))
11 >this : Symbol(A, Decl(defineProperty.ts, 0, 16))
12 >y : Symbol(A.y, Decl(defineProperty.ts, 8, 16))
15 >b : Symbol(A.b, Decl(defineProperty.ts, 2, 14))
18 >c : Symbol(A.c, Decl(defineProperty.ts, 3, 5))
21 >["computed"] : Symbol(A["computed"], Decl(defineProperty.ts, 4, 13))
[all …]
DdefineProperty(target=es5).symbols1 === tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts ===
3 >x : Symbol(x, Decl(defineProperty.ts, 0, 3))
6 >A : Symbol(A, Decl(defineProperty.ts, 0, 16))
9 >a : Symbol(A.a, Decl(defineProperty.ts, 1, 9))
10 >this.y : Symbol(A.y, Decl(defineProperty.ts, 8, 16))
11 >this : Symbol(A, Decl(defineProperty.ts, 0, 16))
12 >y : Symbol(A.y, Decl(defineProperty.ts, 8, 16))
15 >b : Symbol(A.b, Decl(defineProperty.ts, 2, 14))
18 >c : Symbol(A.c, Decl(defineProperty.ts, 3, 5))
21 >["computed"] : Symbol(A["computed"], Decl(defineProperty.ts, 4, 13))
[all …]
DjsDeclarationsExportDefinePropertyEmit.js2 Object.defineProperty(module.exports, "a", { value: function a() {} });
4 Object.defineProperty(module.exports, "b", { value: function b() {} });
5 Object.defineProperty(module.exports.b, "cat", { value: "cat" });
13 Object.defineProperty(module.exports, "d", { value: d });
23 Object.defineProperty(module.exports, "e", { value: e });
32 Object.defineProperty(module.exports, "f", { value: f });
33 Object.defineProperty(module.exports.f, "self", { value: module.exports.f });
42 Object.defineProperty(module.exports, "g", { value: g });
52 Object.defineProperty(module.exports, "h", { value: hh });
54 Object.defineProperty(module.exports, "i", { value: function i(){} });
[all …]
DjsDeclarationsMultipleExportFromMerge.js25 Object.defineProperty(exports, "__esModule", { value: true });
32 Object.defineProperty(exports, "__esModule", { value: true });
35 Object.defineProperty(exports, "a", { enumerable: true, get: function () { return items_1.a; } });
36 Object.defineProperty(exports, "b", { enumerable: true, get: function () { return items_1.b; } });
37 Object.defineProperty(exports, "c", { enumerable: true, get: function () { return items_1.c; } });
40 Object.defineProperty(exports, "__esModule", { value: true });
43 Object.defineProperty(exports, "a", { enumerable: true, get: function () { return items_1.a; } });
45 Object.defineProperty(exports, "b", { enumerable: true, get: function () { return items_2.b; } });
46 Object.defineProperty(exports, "c", { enumerable: true, get: function () { return items_2.c; } });
49 Object.defineProperty(exports, "__esModule", { value: true });
[all …]
DjsDeclarationsExportDefinePropertyEmit.types2 Object.defineProperty(module.exports, "a", { value: function a() {} });
3 >Object.defineProperty(module.exports, "a", { value: function a() {} }) : any
4 >Object.defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) =…
6 >defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => any
16 Object.defineProperty(module.exports, "b", { value: function b() {} });
17 >Object.defineProperty(module.exports, "b", { value: function b() {} }) : any
18 >Object.defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) =…
20 >defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => any
30 Object.defineProperty(module.exports.b, "cat", { value: "cat" });
31 >Object.defineProperty(module.exports.b, "cat", { value: "cat" }) : any
[all …]
DprivacyCannotNameAccessorDeclFile.js141 Object.defineProperty(exports, "__esModule", { value: true });
170 Object.defineProperty(exports, "__esModule", { value: true });
193 Object.defineProperty(exports, "__esModule", { value: true });
199 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod", {
206 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod", {
213 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod", {
220 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPrivateMethod", {
227 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPublicStaticMethod1", {
234 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes, "myPrivateStaticMethod1", {
241 Object.defineProperty(publicClassWithWithPrivateGetAccessorTypes.prototype, "myPublicMethod1", {
[all …]
DjsDeclarationsExportDefinePropertyEmit.symbols2 Object.defineProperty(module.exports, "a", { value: function a() {} });
3 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
5 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
13 Object.defineProperty(module.exports, "b", { value: function b() {} });
14 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
16 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
24 Object.defineProperty(module.exports.b, "cat", { value: "cat" });
25 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
27 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
46 Object.defineProperty(module.exports, "d", { value: d });
[all …]
DaccessibilityModifiers.js53 Object.defineProperty(C, "privateGetter", {
58 Object.defineProperty(C, "privateSetter", {
64 Object.defineProperty(C, "protectedGetter", {
69 Object.defineProperty(C, "protectedSetter", {
75 Object.defineProperty(C, "publicGetter", {
80 Object.defineProperty(C, "publicSetter", {
92 Object.defineProperty(D, "privateGetter", {
97 Object.defineProperty(D, "privateSetter", {
103 Object.defineProperty(D, "protectedGetter", {
108 Object.defineProperty(D, "protectedSetter", {
[all …]
DprivacyGetter.js213 Object.defineProperty(exports, "__esModule", { value: true });
233 Object.defineProperty(C3_public.prototype, "p1_private", {
242 Object.defineProperty(C3_public.prototype, "p2_private", {
251 Object.defineProperty(C3_public.prototype, "p3_private", {
260 Object.defineProperty(C3_public.prototype, "p4_public", {
275 Object.defineProperty(C4_private.prototype, "p1_private", {
284 Object.defineProperty(C4_private.prototype, "p2_private", {
293 Object.defineProperty(C4_private.prototype, "p3_private", {
302 Object.defineProperty(C4_private.prototype, "p4_public", {
332 Object.defineProperty(m2_C3_public.prototype, "p1_private", {
[all …]
DcheckOtherObjectAssignProperty.symbols66 Object.defineProperty(exports, "thing", obj);
67 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
69 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
80 Object.defineProperty(exports, str, { value: 42, writable: true });
81 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
83 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
92 Object.defineProperty(exports, propName, { value: 42, writable: true });
93 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
95 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
102 Object.defineProperty(exports, "bad1", { });
[all …]
DexportsAndImports1-es6.js38 Object.defineProperty(exports, "__esModule", { value: true });
62 Object.defineProperty(exports, "__esModule", { value: true });
65 Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v; } });
66 Object.defineProperty(exports, "f", { enumerable: true, get: function () { return t1_1.f; } });
67 Object.defineProperty(exports, "C", { enumerable: true, get: function () { return t1_1.C; } });
68 Object.defineProperty(exports, "E", { enumerable: true, get: function () { return t1_1.E; } });
69 Object.defineProperty(exports, "M", { enumerable: true, get: function () { return t1_1.M; } });
70 Object.defineProperty(exports, "a", { enumerable: true, get: function () { return t1_1.a; } });
73 Object.defineProperty(exports, "__esModule", { value: true });
76 Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v; } });
[all …]
DcheckOtherObjectAssignProperty.types90 Object.defineProperty(exports, "thing", obj);
91 >Object.defineProperty(exports, "thing", obj) : any
92 >Object.defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) =…
94 >defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => any
107 Object.defineProperty(exports, str, { value: 42, writable: true });
108 >Object.defineProperty(exports, str, { value: 42, writable: true }) : any
109 >Object.defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) =…
111 >defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => any
124 Object.defineProperty(exports, propName, { value: 42, writable: true });
125 >Object.defineProperty(exports, propName, { value: 42, writable: true }) : any
[all …]
DcomputedPropertyNames11_ES5.js25 Object.defineProperty(_a, s, {
30 Object.defineProperty(_a, n, {
35 Object.defineProperty(_a, s + s, {
40 Object.defineProperty(_a, s + n, {
45 Object.defineProperty(_a, +s, {
50 Object.defineProperty(_a, "", {
55 Object.defineProperty(_a, 0, {
60 Object.defineProperty(_a, a, {
65 Object.defineProperty(_a, true, {
70 Object.defineProperty(_a, "hello bye", {
[all …]
DexportsAndImports1-amd.js39 Object.defineProperty(exports, "__esModule", { value: true });
68 Object.defineProperty(exports, "__esModule", { value: true });
70 Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v; } });
71 Object.defineProperty(exports, "f", { enumerable: true, get: function () { return t1_1.f; } });
72 Object.defineProperty(exports, "C", { enumerable: true, get: function () { return t1_1.C; } });
73 Object.defineProperty(exports, "E", { enumerable: true, get: function () { return t1_1.E; } });
74 Object.defineProperty(exports, "M", { enumerable: true, get: function () { return t1_1.M; } });
75 Object.defineProperty(exports, "a", { enumerable: true, get: function () { return t1_1.a; } });
80 Object.defineProperty(exports, "__esModule", { value: true });
82 Object.defineProperty(exports, "v", { enumerable: true, get: function () { return t1_1.v; } });
[all …]
DcomputedPropertyNames16_ES5.js26 Object.defineProperty(C.prototype, s, {
31 Object.defineProperty(C.prototype, n, {
36 Object.defineProperty(C, s + s, {
41 Object.defineProperty(C.prototype, s + n, {
46 Object.defineProperty(C.prototype, +s, {
51 Object.defineProperty(C, "", {
56 Object.defineProperty(C.prototype, 0, {
61 Object.defineProperty(C.prototype, a, {
66 Object.defineProperty(C, true, {
71 Object.defineProperty(C.prototype, "hello bye", {
[all …]
DdeclFileAccessors.js105 Object.defineProperty(exports, "__esModule", { value: true });
111 Object.defineProperty(c1.prototype, "p3", {
122 Object.defineProperty(c1.prototype, "pp3", {
133 Object.defineProperty(c1, "s3", {
144 Object.defineProperty(c1.prototype, "nc_p3", {
153 Object.defineProperty(c1.prototype, "nc_pp3", {
162 Object.defineProperty(c1, "nc_s3", {
171 Object.defineProperty(c1.prototype, "onlyGetter", {
179 Object.defineProperty(c1.prototype, "onlySetter", {
194 Object.defineProperty(c2.prototype, "p3", {
[all …]
DcheckExportsObjectAssignProperty.symbols145 Object.defineProperty(exports, "thing", { value: 42, writable: true });
146 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
148 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
154 Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false });
155 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
157 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
163 Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } });
164 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
166 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
173 Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } });
[all …]
DdefineProperty(target=es5).js47 Object.defineProperty(this, "y", {
53 Object.defineProperty(this, "a", {
59 Object.defineProperty(this, "b", {
65 Object.defineProperty(this, "c", {
71 Object.defineProperty(this, "computed", {
77 Object.defineProperty(this, _a, {
83 Object.defineProperty(this, "z", {
90 Object.defineProperty(A.prototype, "m", {
101 Object.defineProperty(this, "a", {
114 Object.defineProperty(_this, "ka", {
[all …]
DcheckExportsObjectAssignProperty.types177 Object.defineProperty(exports, "thing", { value: 42, writable: true });
178 >Object.defineProperty(exports, "thing", { value: 42, writable: true }) : any
179 >Object.defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) =…
181 >defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => any
190 Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false });
191 >Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false }) : any
192 >Object.defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) =…
194 >defineProperty : (o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => any
203 Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } });
204 >Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } }) :…
[all …]
DjsCheckObjectDefineThisNoCrash.symbols7 Object.defineProperty(this, "_prop", { value: {} });
8 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
10 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
14 Object.defineProperty(this._prop, "num", { value: 12 });
15 >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
17 >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --))
/third_party/jerryscript/tests/jerry/es2015/
Dproxy_define_own_property.js20 var handler = { defineProperty (target) { method
35 defineProperty: function(target, name, desc) { method
46 Object.defineProperty(proxy, "foo", desc);
52 defineProperty: function(target, name, desc) { method
53 Object.defineProperty(target, name, desc);
59 Object.defineProperty(proxy, "bar", desc);
90 defineProperty: 1 property
96 Object.defineProperty(proxy, "foo", {value: "foo"});
105 defineProperty: undefined property
111 Object.defineProperty(proxy, "prop1", desc);
[all …]
/third_party/typescript/tests/cases/conformance/jsdoc/declarations/
DjsDeclarationsExportDefinePropertyEmit.ts6 Object.defineProperty(module.exports, "a", { value: function a() {} });
8 Object.defineProperty(module.exports, "b", { value: function b() {} });
9 Object.defineProperty(module.exports.b, "cat", { value: "cat" });
17 Object.defineProperty(module.exports, "d", { value: d });
27 Object.defineProperty(module.exports, "e", { value: e });
36 Object.defineProperty(module.exports, "f", { value: f });
37 Object.defineProperty(module.exports.f, "self", { value: module.exports.f });
46 Object.defineProperty(module.exports, "g", { value: g });
56 Object.defineProperty(module.exports, "h", { value: hh });
58 Object.defineProperty(module.exports, "i", { value: function i(){} });
[all …]
/third_party/jerryscript/tests/jerry/
Darray-prototype-reverse.js25 Object.defineProperty(obj, 'length', { 'get' : function () {throw new ReferenceError ("foo"); } });
37 Object.defineProperty(obj, '0', { 'get' : function () {throw new ReferenceError ("foo"); } });
50 Object.defineProperty(obj, '3', { 'get' : function () {throw new ReferenceError ("foo"); } });
64 Object.defineProperty(arr, '0', {});
65 Object.defineProperty(arr, '1', {});
66 Object.defineProperty(arr, '2', {});
77 Object.defineProperty(arr, '19', {});
78 Object.defineProperty(arr, '20', {});
79 Object.defineProperty(arr, '21', {});
100 Object.defineProperty(obj, '2', { value : 0 });
[all …]
/third_party/typescript/tests/cases/conformance/jsdoc/
DcheckExportsObjectAssignProperty.ts6 Object.defineProperty(exports, "thing", { value: 42, writable: true });
7 Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false });
8 Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } });
9 Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } });
10 Object.defineProperty(exports, "setonlyAccessor", {
18 Object.defineProperty(module.exports, "thing", { value: "yes", writable: true });
19 Object.defineProperty(module.exports, "readonlyProp", { value: "Smith", writable: false });
20 Object.defineProperty(module.exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ …
21 Object.defineProperty(module.exports, "readonlyAccessor", { get() { return 21.75 } });
22 Object.defineProperty(module.exports, "setonlyAccessor", {

12345678910>>...53