Home
last modified time | relevance | path

Searched refs:stringify (Results 1 – 25 of 826) sorted by relevance

12345678910>>...34

/third_party/jerryscript/tests/jerry/
Dregexp-backtrack.js15 assert (JSON.stringify (/(?:(a)*){3,}/.exec("aaaab")) === '["aaaa",null]');
16 assert (JSON.stringify (/((a)*){3,}/.exec("aaaab")) === '["aaaa","",null]');
17 assert (JSON.stringify (/((a)+){3,}/.exec("aaaab")) === '["aaaa","a","a"]');
18 assert (JSON.stringify (/((.)*){3,}/.exec("abcd")) === '["abcd","",null]');
19 assert (JSON.stringify (/((.)+){3,}/.exec("abcd")) === '["abcd","d","d"]');
21 assert (JSON.stringify (/((.){1,2}){1,2}/.exec("abc")) === '["abc","c","c"]');
22 assert (JSON.stringify (/(?:(a)*?)asd/.exec("aaasd")) === '["aaasd","a"]');
23 assert (JSON.stringify (/(?:(a)*)asd/.exec("aaasd")) === '["aaasd","a"]');
25 assert (JSON.stringify (/(.)*((a)*|(b)*)/.exec("ab")) === '["ab","b","",null,null]');
26 assert (JSON.stringify (/(.)*((x)|(y))+/.exec("xy")) === '["xy","x","y",null,"y"]');
[all …]
Djson-stringify.js16 assert (JSON.stringify ("") === '""');
19 assert (JSON.stringify (normal_string) == '"asdasd"');
22 assert (JSON.stringify (format_characters) == '"\\ba\\fs\\nd\\ra\\tsd"');
25 assert (JSON.stringify (ctl_string) == '"asd\\u001fasd"');
28 assert (JSON.stringify (escpad_string) == '"\\"asdasd"');
30 assert (JSON.stringify('\u2040') == '"⁀"');
31 assert (JSON.stringify('abc\u2040\u2030cba') == '"abc⁀‰cba"');
34 assert (JSON.stringify (1) === '1');
35 assert (JSON.stringify (true) === 'true');
36 assert (JSON.stringify ("foo") === '"foo"');
[all …]
Dregression-test-issue-3082.js21 assert (JSON.stringify (obj) === "{\"a\":\"str\",\"c\":true}");
22 assert (JSON.stringify (obj, null, 2) === "{\n \"a\": \"str\",\n \"c\": true\n}");
28 assert (JSON.stringify (obj) === "{}");
29 assert (JSON.stringify (obj, null, 2) === "{}");
36 assert (JSON.stringify (obj) === "{\"a\":null}");
37 assert (JSON.stringify (obj, null, 2) === "{\n \"a\": null\n}");
44 assert (JSON.stringify (obj) === "{\"a\":false}");
45 assert (JSON.stringify (obj, null, 2) === "{\n \"a\": false\n}");
/third_party/jerryscript/tests/jerry/fail/
Dregression-test-issue-2775.js18 print ( JSON . stringify ( "" ) === '""' )
20 print ( JSON . stringify ( normal_string ) == '"asdasd"' )
22 print ( JSON . stringify ( format_characters ) == '"\\ba\\fs\\nd\\ra\\tsd"' )
24 print ( JSON . stringify ( ctl_string ) == '"asd\\u001fasd"' )
26 print ( JSON . stringify ( escpad_string ) == '"\\"asdasd"' )
27 print ( JSON . stringify ( true ) === 'true' )
28 print ( JSON . stringify ( "foo" ) === '"foo"' )
29 print ( JSON . stringify ( null ) === 'null' )
30 print ( JSON . stringify ( RegExp ) === undefined )
31 print ( JSON . stringify ( new Number ( 1 ) ) === '1' )
[all …]
Dregression-test-issue-2774.js18 print ( JSON . stringify ( "" ) === '""' )
20 print ( JSON . stringify ( normal_string ) == '"asdasd"' )
22 print ( JSON . stringify ( format_characters ) == '"\\ba\\fs\\nd\\ra\\tsd"' )
24 print ( JSON . stringify ( ctl_string ) == "h" )
26 print ( JSON . stringify ( escpad_string ) == '"\\"asdasd"' )
27 print ( JSON . stringify ( '\u2040' ) == '"⁀"' )
28 print ( JSON . stringify ( 'abc\u2040\u2030cba' ) == '"abc⁀‰cba"' )
29 print ( JSON . stringify ( 1 ) === '1' )
30 print ( JSON . stringify ( 0 ) === 'true' )
31 print ( JSON . stringify ( "" ) === '"foo"' )
[all …]
/third_party/node/deps/npm/node_modules/qs/test/
Dstringify.js11 st.equal(qs.stringify({ a: 'b' }), 'a=b');
12 st.equal(qs.stringify({ a: 1 }), 'a=1');
13 st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2');
14 st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z');
15 st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC');
16 st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80');
17 st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90');
18 st.equal(qs.stringify({ a: '��' }), 'a=%F0%90%90%B7');
23 st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b');
28 st.equal(qs.stringify({}, { addQueryPrefix: true }), '');
[all …]
/third_party/typescript/tests/baselines/reference/
Djson.stringify.symbols1 === tests/cases/compiler/json.stringify.ts ===
3 >value : Symbol(value, Decl(json.stringify.ts, 0, 3))
5 JSON.stringify(value, undefined, 2);
6 >JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
8 >stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
9 >value : Symbol(value, Decl(json.stringify.ts, 0, 3))
12 JSON.stringify(value, null, 2);
13 >JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
15 >stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
16 >value : Symbol(value, Decl(json.stringify.ts, 0, 3))
[all …]
Djson.stringify.js3 JSON.stringify(value, undefined, 2);
4 JSON.stringify(value, null, 2);
5 JSON.stringify(value, ["a", 1], 2);
6 JSON.stringify(value, (k) => undefined, 2);
7 JSON.stringify(value, undefined, 2);
11 JSON.stringify(value, undefined, 2);
12 JSON.stringify(value, null, 2);
13 JSON.stringify(value, ["a", 1], 2);
14 JSON.stringify(value, function (k) { return undefined; }, 2);
15 JSON.stringify(value, undefined, 2);
Djson.stringify.types1 === tests/cases/compiler/json.stringify.ts ===
6 JSON.stringify(value, undefined, 2);
7 >JSON.stringify(value, undefined, 2) : string
8 >JSON.stringify : { (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefin…
10 >stringify : { (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, s…
15 JSON.stringify(value, null, 2);
16 >JSON.stringify(value, null, 2) : string
17 >JSON.stringify : { (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefin…
19 >stringify : { (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, s…
24 JSON.stringify(value, ["a", 1], 2);
[all …]
/third_party/typescript/src/testRunner/unittests/config/
DconfigurationExtension.ts7 "dev/node_modules/config-box/package.json": JSON.stringify({
12 "dev/node_modules/config-box/strict.json": JSON.stringify({
17 "dev/node_modules/config-box/unstrict.json": JSON.stringify({
22 "dev/tsconfig.extendsBox.json": JSON.stringify({
28 "dev/tsconfig.extendsStrict.json": JSON.stringify({
34 "dev/tsconfig.extendsUnStrict.json": JSON.stringify({
40 "dev/tsconfig.extendsStrictExtension.json": JSON.stringify({
46 "dev/node_modules/config-box-implied/package.json": JSON.stringify({
50 "dev/node_modules/config-box-implied/tsconfig.json": JSON.stringify({
55 "dev/node_modules/config-box-implied/unstrict/tsconfig.json": JSON.stringify({
[all …]
/third_party/jsframework/runtime/main/manage/event/
DTaskCenter.ts133 return JSON.stringify(v);
242 ace.onFetchRequest(args[1], JSON.stringify(args));
251 return ace.callNative(JSON.stringify(options), args[args.length - 1]);
253 return ace.callNative(JSON.stringify(options), JSON.stringify(args[0]));
255 return ace.callNative(JSON.stringify(options), JSON.stringify(args[0]));
257 return ace.callNative(JSON.stringify(options), args);
259 return ace.callNative(JSON.stringify(options), JSON.stringify(args[0]));
261 return ace.callNative(JSON.stringify(options), args);
263 return ace.callNative(JSON.stringify(options), args);
265 return ace.callNative(JSON.stringify(options), args);
[all …]
/third_party/node/deps/npm/node_modules/fast-json-stable-stringify/
DREADME.md1 # fast-json-stable-stringify
3 Deterministic `JSON.stringify()` - a faster version of [@substack](https://github.com/substack)'s j…
7 …g/epoberezkin/fast-json-stable-stringify.svg?branch=master)](https://travis-ci.org/epoberezkin/fas…
8 …erezkin/fast-json-stable-stringify/badge.svg?branch=master)](https://coveralls.io/github/epoberezk…
13 var stringify = require('fast-json-stable-stringify');
15 console.log(stringify(obj));
28 var stringify = require('fast-json-stable-stringify')
31 ## var str = stringify(obj, opts)
51 var stringify = require('fast-json-stable-stringify');
54 var s = stringify(obj, function (a, b) {
[all …]
/third_party/jerryscript/tests/jerry/es2015/
Dobject-assign.js23 assert (JSON.stringify (object2) === '{"c":3,"d":5,"a":1,"b":2}');
30 assert (JSON.stringify (copy) === '{"a":1}'); // { a: 1 }
38 assert (JSON.stringify (obj2) === '{"a":0,"b":{"c":0}}');
41 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":0}}');
42 assert (JSON.stringify (obj2) === '{"a":0,"b":{"c":0}}');
45 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":0}}');
46 assert (JSON.stringify (obj2) === '{"a":2,"b":{"c":0}}');
49 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":3}}');
50 assert (JSON.stringify (obj2) === '{"a":2,"b":{"c":3}}');
54 var obj3 = JSON.parse (JSON.stringify (obj1));
[all …]
Dsymbol-isconcatspreadable.js20 assert(JSON.stringify(alphaNumeric) === '["a","b","c",1,2,3]');
25 assert(JSON.stringify(alphaNumeric) === '["a","b","c",[1,2,3]]');
39 assert(JSON.stringify(numericArray) === '[1,2,3,4,5]');
44 assert(JSON.stringify(numericArray) === '[1,2,3,{"0":4,"1":5,"length":2}]');
51 assert(JSON.stringify(alphaObj) === '["a","b","c",{"0":"d"}]');
56 assert(JSON.stringify(alphaObj) === '["a","b","c"]');
62 assert(JSON.stringify(numericBool) === '[1,2,3,true]');
67 assert(JSON.stringify(numericBool) === '[1,2,3,true]');
/third_party/node/test/parallel/
Dtest-querystring.js227 assert.deepStrictEqual(qs.stringify(testCase[1], '&', '='), testCase[0]);
265 assert.strictEqual(qs.stringify(testCase[2]), testCase[1]);
269 assert.strictEqual(qs.stringify(testCase[2], ';', ':'), testCase[1]);
273 assert.strictEqual(qs.stringify(testCase[0]), testCase[1]);
278 assert.strictEqual(qs.stringify({ foo: 2n ** 1023n }),
280 assert.strictEqual(qs.stringify([0n, 1n, 2n]),
283 assert.strictEqual(qs.stringify({ foo: 2n ** 1023n },
288 assert.strictEqual(qs.stringify([0n, 1n, 2n],
296 () => qs.stringify({ foo: '\udc00' }),
305 assert.strictEqual(qs.stringify({ foo: 0 }), 'foo=0');
[all …]
/third_party/node/deps/npm/node_modules/json-stringify-safe/test/
Dstringify_test.js2 var stringify = require("..") variable
3 function jsonify(obj) { return JSON.stringify(obj, null, 2) }
9 var json = stringify(obj, null, 2)
16 var json = stringify(obj, null, 2)
24 stringify(obj, null, 2).must.eql(jsonify({
34 stringify(obj, null, 2).must.eql(jsonify({
44 stringify(obj, null, 2).must.eql(jsonify({
54 stringify(obj, null, 2).must.eql(jsonify({
67 var json = stringify(obj, null, 2)
76 stringify(obj, null, 2).must.eql(jsonify([
[all …]
/third_party/typescript/src/testRunner/unittests/tsbuild/
DdeclarationEmit.ts5 "/src/solution/tsconfig.base.json": JSON.stringify({
11 "/src/solution/tsconfig.json": JSON.stringify({
16 "/src/solution/src/tsconfig.json": JSON.stringify({
21 "/src/solution/src/subProject/tsconfig.json": JSON.stringify({
30 "/src/solution/src/subProject2/tsconfig.json": JSON.stringify({
44 "/src/solution/src/common/tsconfig.json": JSON.stringify({
70 "/src/solution/tsconfig.json": JSON.stringify({
83 "/src/tsconfig.json": JSON.stringify({
97 "/src/packages/pkg1/tsconfig.json": JSON.stringify({
108 "/src/packages/pkg2/tsconfig.json": JSON.stringify({
/third_party/node/test/sequential/
Dtest-inspector-contexts.js43 JSON.stringify(contextCreated));
45 JSON.stringify(contextCreated));
61 JSON.stringify(contextCreated));
63 JSON.stringify(contextCreated));
65 JSON.stringify(contextCreated));
74 JSON.stringify(contextDestroyed));
93 JSON.stringify(contextCreated));
95 JSON.stringify(contextCreated));
97 JSON.stringify(contextCreated));
119 JSON.stringify(contextCreated));
[all …]
/third_party/node/deps/npm/node_modules/stringify-package/
DREADME.md1stringify-package [![npm version](https://img.shields.io/npm/v/stringify-package.svg)](https://npm…
3 [`stringify-package`](https://github.com/npm/stringify-package) is a standalone
8 `$ npm install stringify-package`
/third_party/node/deps/npm/node_modules/fast-json-stable-stringify/test/
Dstr.js4 var stringify = require('../'); variable
9 t.equal(stringify(obj), '{"a":3,"b":[4,5],"c":6,"z":null}');
15 t.equal(stringify(obj), '{"a":3}');
21 t.equal(stringify(obj), '{"a":3,"z":null}');
27 t.equal(stringify(obj), '{"a":3,"b":null,"c":null}');
33 t.equal(stringify(obj), '[4,null,6]');
39 t.equal(stringify(obj), '{"a":3,"z":""}');
45 t.equal(stringify(obj), '[4,"",6]');
Dnested.js4 var stringify = require('../'); variable
9 t.equal(stringify(obj), '{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}');
18 stringify(one);
29 t.equal(stringify(one, {cycles:true}), '{"a":1,"two":{"a":2,"one":"__cycle__"}}');
36 t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}');
43 t.equal(stringify(y), '{"b":{"a":1},"c":{"a":1}}');
/third_party/node/deps/npm/node_modules/json-stringify-safe/
DREADME.md1 # json-stringify-safe
3 Like JSON.stringify, but doesn't throw on circular references.
7 Takes the same arguments as `JSON.stringify`.
10 var stringify = require('json-stringify-safe');
14 console.log(stringify(circularObj, null, 2));
32 stringify(obj, serializer, indent, decycler)
35 The first three arguments are the same as to JSON.stringify. The last
45 stringify.getSerialize(serializer, decycler)
49 function that's passed to JSON.stringify.
/third_party/typescript/src/testRunner/unittests/tscWatch/
DprogramUpdates.ts42 content: JSON.stringify({
222 content: JSON.stringify({
231 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({
238 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({
265 content: JSON.stringify({
274 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({
282 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({
477 content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] })
499 … sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { module: "none" } }));
566 content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] })
[all …]
/third_party/node/deps/npm/test/tap/
Dinstall-from-local-multipath.js119 JSON.stringify(parent, null, 2)
124 JSON.stringify(parentLock, null, 2)
130 JSON.stringify(child11, null, 2)
134 JSON.stringify(child11Lock, null, 2)
140 JSON.stringify(child12, null, 2)
144 JSON.stringify(child12Lock, null, 2)
150 JSON.stringify(child2, null, 2)
154 JSON.stringify(child2Lock, null, 2)
/third_party/typescript/tests/cases/compiler/
Djson.stringify.ts4 JSON.stringify(value, undefined, 2);
5 JSON.stringify(value, null, 2);
6 JSON.stringify(value, ["a", 1], 2);
7 JSON.stringify(value, (k) => undefined, 2);
8 JSON.stringify(value, undefined, 2);

12345678910>>...34