| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | json.stringify.ts | 25 JSON.stringify(value, undefined, 2); 26 AssertType(JSON.stringify(value, undefined, 2), "string"); 27 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }"); 32 JSON.stringify(value, null, 2); 33 AssertType(JSON.stringify(value, null, 2), "string"); 34 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }"); 39 JSON.stringify(value, ["a", 1], 2); 40 AssertType(JSON.stringify(value, ["a", 1], 2), "string"); 41 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }"); 48 JSON.stringify(value, (k) => undefined, 2); [all …]
|
| D | destructuringInitializerContextualTypeFromContext.ts | 52 AssertType(({ children, name = "Artemis", ...props}) => `name: ${name} props: ${JSON.strin… 64 }) => `name: ${name} props: ${JSON.stringify(props)}`; 65 AssertType(`name: ${name} props: ${JSON.stringify(props)}`, "string"); 67 AssertType(JSON.stringify(props), "string"); 68 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }");
|
| D | controlFlowPropertyDeclarations.ts | 258 …lace(/( {2,}|\n|\t|\{|\})/g, function(whitespace) { return '{' + JSON.stringify(whitespac… 262 …lace(/( {2,}|\n|\t|\{|\})/g, function(whitespace) { return '{' + JSON.stringify(whitespac… 271 AssertType(function(whitespace) { return '{' + JSON.stringify(whitespace) + '}'; },… 273 AssertType('{' + JSON.stringify(whitespace) + '}', "string"); 274 AssertType('{' + JSON.stringify(whitespace), "string"); 276 AssertType(JSON.stringify(whitespace), "string"); 277 AssertType(JSON.stringify, "{ (any, ?(any, string, any) => any, ?union): string; (any, ?(union)[], … 280 return '{' + JSON.stringify(whitespace) + '}';
|
| /arkcompiler/ets_runtime/test/moduletest/jsonparser/ |
| D | jsonparser.js | 23 let json = JSON.parse("[ 1, 2, 3]"); 25 let json2 = JSON.parse("[ 1 ]"); 27 let json3 = JSON.parse("[ ]"); 34 let strData = JSON.stringify(data); 35 let res = JSON.parse(strData); 42 var o = JSON.parse(a, reviver); 46 let res2 = JSON.parse(strData2); 50 let res3 = JSON.parse(strData3); 54 let res4 = JSON.parse(strData4);
|
| /arkcompiler/ets_runtime/test/moduletest/jsonstringifier/ |
| D | jsonstringifier.js | 30 JSON.stringify(v2); 38 print(JSON.stringify(obj)); 43 print(JSON.stringify(a)) 59 print(JSON.stringify(o)) 68 print(JSON.stringify(o2))
|
| /arkcompiler/ets_runtime/test/moduletest/require/ |
| D | require.js | 24 var strB = JSON.stringify(b); 25 var strC = JSON.stringify(c); 26 var str = JSON.stringify(strB + " and " + strC);
|
| /arkcompiler/ets_runtime/test/moduletest/arrayjoin/ |
| D | arrayjoin.js | 24 var str1 = JSON.stringify(Array(3).join("0")); 26 var str2 = JSON.stringify(new Array(3).join("0")); 30 var str3 = JSON.stringify(arr.join("0"));
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/data_type/ |
| D | json_validation.ts | 20 let json_obj = JSON.parse(json_str); 22 let json_str2 = JSON.stringify(json_obj);
|
| /arkcompiler/ets_runtime/test/moduletest/moduleUseCjs/ |
| D | moduleUseCjs.js | 28 print(JSON.stringify(cjs)); 29 print(JSON.stringify(json));
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | NameCacheUtil.ts | 27 const cacheString: string = JSON.stringify(Object.fromEntries(cache)); 39 return JSON.parse(cacheString);
|
| /arkcompiler/ets_runtime/test/moduletest/linkedhashtable/ |
| D | linkedhashtable.js | 24 let res = JSON.stringify(obj1); 25 let parseObj = JSON.parse(res);
|
| /arkcompiler/runtime_core/templates/ |
| D | merge.rb | 58 data = JSON.parse(data.to_json) 97 data = JSON.parse(data.to_json) 100 output_yaml = YAML.dump(JSON.load(data.to_json))
|
| /arkcompiler/ets_runtime/test/moduletest/objoperate/ |
| D | objoperate.js | 23 var t1 = JSON.stringify(a); 24 var t2 = JSON.stringify(b);
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | ts2panda.ts | 194 let jsonStrUnicode = escapeUnicode(JSON.stringify(strObject, null, 2)); 210 jsonTypeString += escapeUnicode(JSON.stringify(literalArrays[1+i], null, 2)); 222 console.log(util.inspect(JSON.parse(JSON.stringify(e)), { maxArrayLength: null })); 231 let jsonLiteralArrUnicode = escapeUnicode(JSON.stringify(literalArrayObject, null, 2)); 258 let jsonOpt = JSON.stringify(options, null, 2); 273 let jsonRecord = escapeUnicode(JSON.stringify(record, null, 2)); 471 let jsonFuncUnicode = escapeUnicode(JSON.stringify(funcObject, null, 2)); 486 let jsonModuleUnicode = escapeUnicode(JSON.stringify(moduleObject, null, 2)); 510 let jsonTypeInfoUnicode = escapeUnicode(JSON.stringify(typeInfoObject, null, 2)); 525 …let jsonInputJsonFileContentUnicode = escapeUnicode(JSON.stringify(inputJsonFileContentObject, nul… [all …]
|
| /arkcompiler/ets_runtime/test/fuzztest/jsonstringify_fuzzer/ |
| D | jsonstringify_fuzzer.cpp | 48 Local<JSValueRef> jsValue = JSON::Parse(vm, res); in JSONStringifyFuzzTest() 49 JSON::Stringify(vm, jsValue); in JSONStringifyFuzzTest()
|
| /arkcompiler/ets_runtime/test/fuzztest/jsonparse_fuzzer/ |
| D | jsonparse_fuzzer.cpp | 48 Local<JSValueRef> jsValue = JSON::Parse(vm, res); in JSONParseFuzzTest() 49 JSON::Stringify(vm, jsValue); in JSONParseFuzzTest()
|
| /arkcompiler/ets_runtime/test/moduletest/dataproperty/ |
| D | dataproperty.js | 28 print(JSON.stringify(o));
|
| /arkcompiler/ets_runtime/test/aottest/jsonstringify/ |
| D | jsonstringify.ts | 24 print(JSON.stringify(foo))
|
| /arkcompiler/ets_runtime/test/quickfix/print_string/ |
| D | base_modify.js | 30 print(JSON.stringify(obj));
|
| D | base.js | 33 print(JSON.stringify(obj));
|
| /arkcompiler/ets_runtime/test/aottest/exception_case1/ |
| D | exception_case1.js | 18 JSON.parse("[1, 2");
|
| /arkcompiler/ets_runtime/test/aottest/exception_case12/ |
| D | exception_case12.ts | 21 JSON.parse("[1, 2");
|
| /arkcompiler/ets_runtime/test/aottest/exception_case8/ |
| D | exception_case8.js | 18 JSON.parse("[1, 2");
|
| /arkcompiler/ets_runtime/test/moduletest/dynamicimport/ |
| D | dynamicimport.js | 41 print(JSON.stringify(m));
|
| /arkcompiler/ets_runtime/test/aottest/exception_case11/ |
| D | exception_case11.ts | 22 JSON.parse("[1, 2");
|