HomeSort by relevance Sort by last modified time
    Searched refs:toJSON (Results 1 - 25 of 40) sorted by null

1 2

  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/hosted/
json2.js 38 When an object value is found, if the object contains a toJSON
39 method, its toJSON method will be called and the result will be
40 stringified. A toJSON method does not serialize: it returns the
42 or undefined if nothing should be serialized. The toJSON method
48 Date.prototype.toJSON = function (key) {
155 test, toJSON, toString, valueOf
173 if (typeof Date.prototype.toJSON !== 'function') {
175 Date.prototype.toJSON = function (key) {
186 String.prototype.toJSON =
187 Number.prototype.toJSON
    [all...]
  /external/chromium_org/v8/test/mjsunit/
json.js 28 // Date toJSON
29 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());
49 //Test Date.prototype.toJSON as generic function.
50 var d1 = {toJSON: Date.prototype.toJSON,
    [all...]
json2.js 81 // Test toJSON function.
82 var tojson_obj = { toJSON: function() {
90 // Test that we don't recursively look for the toJSON function.
92 tojson_proto_obj.__proto__ = { toJSON: function() {
98 // Test toJSON produced by a getter.
99 var tojson_via_getter = { get toJSON() {
109 JSON.stringify({ get toJSON() { throw "error"; } });
112 // Test toJSON with key.
113 tojson_obj = { toJSON: function(key) { return key + key; } };
119 // Test toJSON with exception
    [all...]
undeletable-functions.js 56 "toUTCString", "getYear", "setYear", "toISOString", "toJSON"];
96 "toString", "valueOf", "toJSON"];
101 "toPrecision", "toJSON"];
113 "toJSON", "toString", "valueOf"];
function-call.js 132 Date.prototype.toJSON,
  /external/chromium_org/v8/test/webkit/resources/
JSON-stringify.js 111 return jsonObject.stringify({toJSON: Date.prototype.toJSON});
115 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custom toISOString"; }});
118 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }});
122 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exception"; }});
133 d.toJSON = undefined;
403 preSelf2: {toJSON:function(){cycleTracker+="preSelf2,"; return "preSelf2"}}
    [all...]
json2-es5-compat.js 34 When an object value is found, if the object contains a toJSON
35 method, its toJSON method will be called and the result will be
36 stringified. A toJSON method does not serialize: it returns the
38 or undefined if nothing should be serialized. The toJSON method
44 Date.prototype.toJSON = function (key) {
159 test, toJSON, toString, valueOf
175 if (typeof Date.prototype.toJSON !== 'function') {
177 Date.prototype.toJSON = function (key) {
234 // If the value has a toJSON method, call it to obtain a replacement value.
237 typeof value.toJSON === 'function')
    [all...]
  /external/chromium_org/v8/src/
json.js 131 var toJSON = value.toJSON;
132 if (IS_SPEC_FUNCTION(toJSON)) {
133 value = %_CallFunction(value, key, toJSON);
date.js 816 "toJSON", DateToJSON
  /external/chromium_org/v8/test/mjsunit/harmony/
proxies-json.js 123 // Proxy that provides a toJSON function that uses this.
130 return ['toJSON', 'z'];
140 // Proxy that provides a toJSON function that returns undefined.
146 return ['toJSON'];
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/common/
chromevox_json.js 47 if (typeof Date.prototype.toJSON !== 'function') {
49 Date.prototype.toJSON = function(key) {
60 String.prototype.toJSON =
61 Number.prototype.toJSON =
62 Boolean.prototype.toJSON = function(key) {
113 // If the value has a toJSON method, call it to obtain a replacement
117 typeof value.toJSON === 'function') {
118 value = value.toJSON(key);
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
AttachmentComposeView.java 48 attachStr = attachment.toJSON().toString(2);
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/
prefs.js 183 message['keyBindings'] = this.keyMap_.toJSON();
201 'keyBindings': this.keyMap_.toJSON(),
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.mortbay.jetty.util_6.1.23.v201004211559.jar 
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Settings.java 236 final JSONObject json = toJSON();
249 public synchronized JSONObject toJSON() {
319 * using {@link #toJSON()}. This returns null if the serialized instance was invalid or does
Attachment.java 353 public JSONObject toJSON() throws JSONException {
377 final JSONObject jsonObject = toJSON();
619 result.put(attachment.toJSON());
Account.java 289 json.put(SETTINGS_KEY, settings.toJSON());
    [all...]
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/
web_services.py 163 self.response.out.write(toJSON(updated_contacts))
343 def toJSON(object):
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/keymaps/
key_map.js 132 cvox.KeyMap.prototype.toJSON = function() {
141 localStorage['keyBindings'] = this.toJSON();
  /external/chromium_org/third_party/WebKit/PerformanceTests/Dromaeo/resources/dromaeo/web/lib/
prototype-1.7.js 211 function toJSON(value) {
219 if (Type(value) === OBJECT_TYPE && typeof value.toJSON === 'function') {
220 value = value.toJSON(key);
349 toJSON: NATIVE_JSON_STRINGIFY_SUPPORT ? stringify : toJSON,
469 function toJSON() {
474 if (!proto.toJSON) proto.toJSON = toJSON;
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/parse-only/
prototype-1.6.0.3.js 124 toJSON: function(object) {
134 if (object.toJSON) return object.toJSON();
139 var value = Object.toJSON(object[property]);
141 results.push(property.toJSON() + ': ' + value);
261 Date.prototype.toJSON = function() {
487 toJSON: function() {
914 toJSON: function() {
917 var value = Object.toJSON(object);
985 toJSON: function()
    [all...]
concat-jquery-mootools-prototype.js     [all...]
  /external/chromium_org/content/browser/resources/media/
webrtc_internals.js 31 toJSON: function() {
  /external/chromium_org/v8/test/webkit/fast/js/
Object-getOwnPropertyNames.js 87 "Date.prototype": "['constructor', 'getDate', 'getDay', 'getFullYear', 'getHours', 'getMilliseconds', 'getMinutes', 'getMonth', 'getSeconds', 'getTime', 'getTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMilliseconds', 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear', 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setYear', 'toDateString', 'toGMTString', 'toISOString', 'toJSON', 'toLocaleDateString', 'toLocaleString', 'toLocaleTimeString', 'toString', 'toTimeString', 'toUTCString', 'valueOf']",
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
ComposeActivityTest.java     [all...]

Completed in 765 milliseconds

1 2