Home
last modified time | relevance | path

Searched refs:obj2 (Results 1 – 25 of 266) sorted by relevance

1234567891011

/third_party/typescript/tests/baselines/reference/
DbinaryIntegerLiteralES6.js15 var obj2 = { variable
32 obj2[0B11010]; // string
33 obj2[26]; // string
34 obj2["26"]; // string
35 obj2["0B11010"]; // any
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["bin2"]; // number
39 obj2[9.671406556917009e+24]; // boolean
40 obj2["9.671406556917009e+24"]; // boolean
[all …]
DoctalIntegerLiteral.js15 var obj2 = { variable
32 obj2[0O45436]; // string
33 obj2["0O45436"]; // any
34 obj2["19230"]; // string
35 obj2[19230]; // string
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["oct2"]; // number
39 obj2[5.462437423415177e+244]; // boolean
40 obj2["5.462437423415177e+244"]; // boolean
[all …]
DoctalIntegerLiteralES6.js15 var obj2 = { variable
32 obj2[0O45436]; // string
33 obj2["0O45436"]; // any
34 obj2["19230"]; // string
35 obj2[19230]; // string
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["oct2"]; // number
39 obj2[5.462437423415177e+244]; // boolean
40 obj2["5.462437423415177e+244"]; // boolean
[all …]
DbinaryIntegerLiteral.js15 var obj2 = { variable
32 obj2[0B11010]; // string
33 obj2[26]; // string
34 obj2["26"]; // string
35 obj2["0B11010"]; // any
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["bin2"]; // number
39 obj2[9.671406556917009e+24]; // boolean
40 obj2["9.671406556917009e+24"]; // boolean
[all …]
DoctalIntegerLiteral.symbols34 var obj2 = {
35 >obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3))
85 obj2[0O45436]; // string
86 >obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3))
89 obj2["0O45436"]; // any
90 >obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3))
92 obj2["19230"]; // string
93 >obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3))
96 obj2[19230]; // string
97 >obj2 : Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3))
[all …]
DbinaryIntegerLiteralES6.symbols34 var obj2 = {
35 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3))
85 obj2[0B11010]; // string
86 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3))
89 obj2[26]; // string
90 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3))
93 obj2["26"]; // string
94 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3))
97 obj2["0B11010"]; // any
98 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3))
[all …]
DoctalIntegerLiteralES6.symbols34 var obj2 = {
35 >obj2 : Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3))
85 obj2[0O45436]; // string
86 >obj2 : Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3))
89 obj2["0O45436"]; // any
90 >obj2 : Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3))
92 obj2["19230"]; // string
93 >obj2 : Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3))
96 obj2[19230]; // string
97 >obj2 : Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3))
[all …]
DbinaryIntegerLiteral.symbols34 var obj2 = {
35 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3))
85 obj2[0B11010]; // string
86 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3))
89 obj2[26]; // string
90 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3))
93 obj2["26"]; // string
94 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3))
97 obj2["0B11010"]; // any
98 >obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3))
[all …]
DbinaryIntegerLiteralES6.types42 var obj2 = {
43 >obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; }
106 obj2[0B11010]; // string
107 >obj2[0B11010] : string
108 >obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; }
111 obj2[26]; // string
112 >obj2[26] : string
113 >obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; }
116 obj2["26"]; // string
117 >obj2["26"] : string
[all …]
DbinaryIntegerLiteral.types42 var obj2 = {
43 >obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; }
106 obj2[0B11010]; // string
107 >obj2[0B11010] : string
108 >obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; }
111 obj2[26]; // string
112 >obj2[26] : string
113 >obj2 : { 26: string; a: number; bin2: number; b: number; 9.671406556917009e+24: boolean; }
116 obj2["26"]; // string
117 >obj2["26"] : string
[all …]
DoctalIntegerLiteralES6.types42 var obj2 = {
43 >obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; }
106 obj2[0O45436]; // string
107 >obj2[0O45436] : string
108 >obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; }
111 obj2["0O45436"]; // any
112 >obj2["0O45436"] : error
113 >obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; }
116 obj2["19230"]; // string
117 >obj2["19230"] : string
[all …]
DoctalIntegerLiteral.types42 var obj2 = {
43 >obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; }
106 obj2[0O45436]; // string
107 >obj2[0O45436] : string
108 >obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; }
111 obj2["0O45436"]; // any
112 >obj2["0O45436"] : error
113 >obj2 : { 19230: string; a: number; b: number; oct2: number; 5.462437423415177e+244: boolean; }
116 obj2["19230"]; // string
117 >obj2["19230"] : string
[all …]
DcontrolFlowFavorAssertedTypeThroughTypePredicate.symbols27 declare const obj2: {} | undefined;
28 >obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13))
30 if (isObject1(obj2)) {
32 >obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13))
34 obj2;
35 >obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13))
37 obj2['attr'];
38 >obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13))
41 obj2;
42 >obj2 : Symbol(obj2, Decl(controlFlowFavorAssertedTypeThroughTypePredicate.ts, 12, 13))
DtsxStatelessFunctionComponentOverload3.js8 let obj2: any;
13 const two3 = <ZeroThingOrTwoThing {...obj2} />; // it is just any so we allow it to pass through
14 const two4 = <ZeroThingOrTwoThing yy={1000} {...obj2} />; // it is just any so we allow it to pas…
15 const two5 = <ZeroThingOrTwoThing {...obj2} yy={1000} />; // it is just any so we allow it to pas…
24 const three3 = <ThreeThing {...obj2} y2={10} />; // it is just any so we allow it to pass through
27 var obj2; variable
31 var two3 = <ZeroThingOrTwoThing {...obj2}/>; // it is just any so we allow it to pass through
32 var two4 = <ZeroThingOrTwoThing yy={1000} {...obj2}/>; // it is just any so we allow it to pass thr…
33 var two5 = <ZeroThingOrTwoThing {...obj2} yy={1000}/>; // it is just any so we allow it to pass thr…
37 var three3 = <ThreeThing {...obj2} y2={10}/>; // it is just any so we allow it to pass through
DcontrolFlowFavorAssertedTypeThroughTypePredicate.types28 declare const obj2: {} | undefined;
29 >obj2 : {} | undefined
31 if (isObject1(obj2)) {
32 >isObject1(obj2) : boolean
34 >obj2 : {} | undefined
36 obj2;
37 >obj2 : Record<string, unknown>
39 obj2['attr'];
40 >obj2['attr'] : unknown
41 >obj2 : Record<string, unknown>
[all …]
DnodeModulesTripleSlashReferenceModeDeclarationEmit7(module=nodenext).types6 import obj2 from "./sub2/uses.js"
7 >obj2 : typeof obj2
9 export default [obj1, obj2.default] as const;
10 >[obj1, obj2.default] as const : readonly [ImportInterface, RequireInterface]
11 >[obj1, obj2.default] : readonly [ImportInterface, RequireInterface]
13 >obj2.default : RequireInterface
14 >obj2 : typeof obj2
DcontextualTypingOfObjectLiterals.symbols6 var obj2 = {x: ""};
7 >obj2 : Symbol(obj2, Decl(contextualTypingOfObjectLiterals.ts, 1, 3))
13 obj1 = obj2; // Error - indexer doesn't match
15 >obj2 : Symbol(obj2, Decl(contextualTypingOfObjectLiterals.ts, 1, 3))
29 f(obj2); // Error - indexer doesn't match
31 >obj2 : Symbol(obj2, Decl(contextualTypingOfObjectLiterals.ts, 1, 3))
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.7/6_improved_type_inference_for_object_literals/
D6_improved_type_inference_for_object_literals.ts40 let obj2 = fun({ a: 1, b: 2 }, { a: "abc", b: "ABC" }, {}); variable
42 obj2.a = 5;
43 Assert.isNumber(obj2.a);
44 obj2.a = 'a';
45 Assert.isString(obj2.a);
46 obj2.a = undefined;
47 Assert.isUndefined(obj2.a);
49 obj2.b = 6;
50 Assert.isNumber(obj2.b);
51 obj2.b = 'b';
[all …]
/third_party/node/deps/npm/node_modules/just-diff/
Dindex.cjs8 const obj2 = {a: 3, b: 5};
11 diff(obj1, obj2);
16 diff(obj2, obj3);
26 diff(obj1, obj2, jsonPatchPathConverter);
31 diff(obj2, obj3, jsonPatchPathConverter);
72 function diff(obj1, obj2, pathConverter) {
73 if (!obj1 || typeof obj1 != 'object' || !obj2 || typeof obj2 != 'object') {
82 function getDiff({obj1, obj2, basePath, basePathForRemoves, diffs}) {
85 var obj2Keys = Object.keys(obj2);
89 var lengthDelta = obj1.length - obj2.length;
[all …]
Dindex.mjs3 const obj2 = {a: 3, b: 5};
6 diff(obj1, obj2);
11 diff(obj2, obj3);
21 diff(obj1, obj2, jsonPatchPathConverter);
26 diff(obj2, obj3, jsonPatchPathConverter);
67 function diff(obj1, obj2, pathConverter) { argument
68 if (!obj1 || typeof obj1 != 'object' || !obj2 || typeof obj2 != 'object') {
77 function getDiff({obj1, obj2, basePath, basePathForRemoves, diffs}) { property
80 var obj2Keys = Object.keys(obj2);
84 var lengthDelta = obj1.length - obj2.length;
[all …]
/third_party/typescript/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/
DbinaryIntegerLiteral.ts15 var obj2 = { variable
32 obj2[0B11010]; // string
33 obj2[26]; // string
34 obj2["26"]; // string
35 obj2["0B11010"]; // any
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["bin2"]; // number
39 obj2[9.671406556917009e+24]; // boolean
40 obj2["9.671406556917009e+24"]; // boolean
[all …]
DoctalIntegerLiteralES6.ts15 var obj2 = { variable
32 obj2[0O45436]; // string
33 obj2["0O45436"]; // any
34 obj2["19230"]; // string
35 obj2[19230]; // string
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["oct2"]; // number
39 obj2[5.462437423415177e+244]; // boolean
40 obj2["5.462437423415177e+244"]; // boolean
[all …]
DbinaryIntegerLiteralES6.ts15 var obj2 = { variable
32 obj2[0B11010]; // string
33 obj2[26]; // string
34 obj2["26"]; // string
35 obj2["0B11010"]; // any
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["bin2"]; // number
39 obj2[9.671406556917009e+24]; // boolean
40 obj2["9.671406556917009e+24"]; // boolean
[all …]
DoctalIntegerLiteral.ts15 var obj2 = { variable
32 obj2[0O45436]; // string
33 obj2["0O45436"]; // any
34 obj2["19230"]; // string
35 obj2[19230]; // string
36 obj2["a"]; // number
37 obj2["b"]; // number
38 obj2["oct2"]; // number
39 obj2[5.462437423415177e+244]; // boolean
40 obj2["5.462437423415177e+244"]; // boolean
[all …]
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
Dprotocol_core_test.cc65 auto obj2 = Roundtrip(obj1); in TEST() local
66 ASSERT_THAT(obj2, Not(testing::IsNull())); in TEST()
67 EXPECT_THAT(obj2->GetValue(), Eq("foo")); in TEST()
176 auto obj2 = Roundtrip(obj1); in TEST() local
177 ASSERT_THAT(obj2, Not(testing::IsNull())); in TEST()
178 EXPECT_THAT(obj2->GetBoolField(), Eq(true)); in TEST()
179 EXPECT_THAT(obj2->GetIntField(), Eq(42)); in TEST()
180 EXPECT_THAT(obj2->GetDoubleField(), Eq(2.718281828)); in TEST()
181 EXPECT_THAT(obj2->GetStrField(), Eq("bar")); in TEST()
182 EXPECT_THAT(obj2->GetTestTypeBasicField()->GetValue(), Eq("bazzzz")); in TEST()
[all …]

1234567891011