Home
last modified time | relevance | path

Searched refs:toJSON (Results 1 – 25 of 26) sorted by relevance

12

/external/v8/test/mjsunit/
Djson.js29 assertEquals("1970-01-01T00:00:00.000Z", new Date(0).toJSON());
30 assertEquals("1979-01-11T08:00:00.000Z", new Date("1979-01-11 08:00 GMT").toJSON());
31 assertEquals("2005-05-05T05:05:05.000Z", new Date("2005-05-05 05:05:05 GMT").toJSON());
34 assertEquals("foo", n1.toJSON());
37 assertThrows(function () { n2.toJSON(); }, TypeError);
44 assertEquals(null, n4.toJSON());
50 var d1 = {toJSON: Date.prototype.toJSON, property
52 assertEquals(42, d1.toJSON());
54 var d2 = {toJSON: Date.prototype.toJSON, property
57 assertEquals(null, d2.toJSON());
[all …]
Djson2.js82 var tojson_obj = { toJSON: function() { method
92 tojson_proto_obj.__proto__ = { toJSON: function() { method
99 var tojson_via_getter = { get toJSON() { getter
109 JSON.stringify({ get toJSON() { throw "error"; } }); getter
113 tojson_obj = { toJSON: function(key) { return key + key; } }; method
120 var tojson_ex = { toJSON: function(key) { throw "123" } }; method
125 var obj = { toJSON: function(key) { return this.a + key; }, a: "x" }; method
Dfunction-call.js132 Date.prototype.toJSON,
/external/v8/test/webkit/resources/
DJSON-stringify.js111 return jsonObject.stringify({toJSON: Date.prototype.toJSON}); property
115 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custo… property
118 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }}… property
122 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exc… property
133 d.toJSON = undefined;
403 … preSelf2: {toJSON:function(){cycleTracker+="preSelf2,"; return "preSelf2"}}, method
406 … postSelf2: {toJSON:function(){cycleTracker+="postSelf2,"; return "postSelf2"}}, method
407toJSON : function(key) { cycleTracker += key + "("+(typeof key)+"):" + this; return this; } method
421 …var cyclicArray = [{toJSON : function(key,value) { cycleTracker += key + "("+(typeof key)+"):" + t… method
423 …{toJSON : function(key,value) { cycleTracker += key + "("+(typeof key)+"):" + this; cycleTracker +… method
[all …]
Djson2-es5-compat.js175 if (typeof Date.prototype.toJSON !== 'function') {
177 Date.prototype.toJSON = function (key) { method in Date
237 typeof value.toJSON === 'function') {
238 value = value.toJSON(key);
/external/v8/test/webkit/
Drun-json-stringify-expected.txt84 return jsonObject.stringify({toJSON: Date.prototype.toJSON});
88 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custo…
92 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }}…
96 …return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exc…
107 d.toJSON = undefined;
469 return jsonObject.stringify({toJSON:function(){ return undefined; }});
473 return jsonObject.stringify({toJSON:function(){ return null; }});
477 return jsonObject.stringify([{toJSON:function(){ return undefined; }}]);
481 return jsonObject.stringify([{toJSON:function(){ return null; }}]);
485 return jsonObject.stringify({a:{toJSON:function(){ return undefined; }}});
[all …]
/external/v8/src/
Djson.js131 var toJSON = value.toJSON;
132 if (IS_SPEC_FUNCTION(toJSON)) {
133 value = %_CallFunction(value, key, toJSON);
/external/jetty/src/java/org/eclipse/jetty/util/ajax/
DJSONPojoConvertorFactory.java60 public void toJSON(Object obj, Output out) in toJSON() method in JSONPojoConvertorFactory
79 convertor.toJSON(obj, out); in toJSON()
DJSON.java242 public String toJSON(Object object) in toJSON() method in JSON
373 public void toJSON(Output out) in appendJSON()
375 convertor.toJSON(object,out); in appendJSON()
389 converter.toJSON(out); in appendJSON()
1566 public void toJSON(Output out); in toJSON() method
1584 public void toJSON(Object obj, Output out); in toJSON() method
DJSONCollectionConvertor.java29 public void toJSON(Object obj, JSON.Output out) in toJSON() method in JSONCollectionConvertor
DJSONEnumConvertor.java81 public void toJSON(Object obj, Output out) in toJSON() method in JSONEnumConvertor
DJSONDateConvertor.java94 public void toJSON(Object obj, Output out) in toJSON() method in JSONDateConvertor
DJSONObjectConvertor.java72 public void toJSON(Object obj, Output out) in toJSON() method in JSONObjectConvertor
DJSONPojoConvertor.java224 public void toJSON(Object obj, Output out) in toJSON() method in JSONPojoConvertor
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.mortbay.jetty.util_6.1.23.v201004211559.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/jetty/lib/
Djetty-util-6.1.26.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mortbay/ org/ ...
/external/v8/test/webkit/fast/js/
DObject-getOwnPropertyNames-expected.txt79 …etUTCSeconds', 'setYear', 'toDateString', 'toGMTString', 'toISOString', 'toJSON', 'toLocaleDateStr…
/external/chromium-trace/trace-viewer/tracing/third_party/mocha/
Dmocha.js5872 Buffer.prototype.toJSON = Buffer.prototype.toJSON || function () { method in Buffer
6090 var json = value.toJSON();
6145 var json = val.toJSON();
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/third_party/rjsmin/bench/
Dknockout-2.0.0.js42 …10>b;b++)a=a();return a})};r.toJSON=function(a){a=r.Pa(a);return r.a.qa(a)}})();r.b("ko.toJS",r.Pa… function
Djquery-1.7.1.js1691 cache[ id ].toJSON = jQuery.noop;
/external/chromium-trace/trace-viewer/tracing/third_party/chai/
Dchai.js1 …,i.prototype.name="AssertionError",i.prototype.constructor=i,i.prototype.toJSON=function(e){var t=… method in i
/external/chromium-trace/trace-viewer/tracing/third_party/css-element-queries/test/
Dmootools-core-full-nocompat.js5709 if (obj && obj.toJSON) obj = obj.toJSON();
Dmootools-more-yui-compressed.min.js1 …turn d})},toISOString:function(){return this.format("iso8601")}}).alias({toJSON:"toISOString",comp… property
/external/slf4j/slf4j-site/src/site/pages/js/
Djquery-min.js2 …ata)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof…
/external/chromium-trace/trace-viewer/tracing/test_data/
Dv8.log3827 code-creation,LoadIC,5,0x4f015540,93,"toJSON"
3828 code-creation,Stub,2,0x4f0155a0,70,"toJSON"
3829 code-creation,LoadPolymorphicIC,5,0x4f015600,105,"toJSON"
3831 code-creation,LoadPolymorphicIC,5,0x4f015700,117,"toJSON"
3833 code-creation,LoadPolymorphicIC,5,0x4f015800,129,"toJSON"
4871 code-creation,LoadPolymorphicIC,5,0x4f0310e0,105,"toJSON"
4872 code-creation,LoadPolymorphicIC,5,0x4f031160,117,"toJSON"
4873 code-creation,LoadPolymorphicIC,5,0x4f0311e0,129,"toJSON"
7061 code-creation,Stub,2,0x4f06c580,70,"toJSON"
7809 code-creation,Stub,2,0x4f082be0,70,"toJSON"
[all …]

12