/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 | 80 // Test toJSON function. 81 var tojson_obj = { toJSON: function() { 89 // Test that we don't recursively look for the toJSON function. 91 tojson_proto_obj.__proto__ = { toJSON: function() { 97 // Test toJSON produced by a getter. 98 var tojson_via_getter = { get toJSON() { 107 // Test toJSON with key. 108 tojson_obj = { toJSON: function(key) { return key + key; } }; 114 // Test toJSON with exception. 115 var tojson_ex = { toJSON: function(key) { throw "123" } } [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/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...] |
undeletable-functions.js | 56 "toUTCString", "getYear", "setYear", "toISOString", "toJSON"]; 96 "toString", "valueOf", "toJSON"]; 101 "toPrecision", "toJSON"]; 113 "toJSON", "toString", "valueOf"];
|
function-call.js | 133 Date.prototype.toJSON,
|
/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/v8/src/ |
json.js | 145 var toJSON = value.toJSON; 146 if (IS_SPEC_FUNCTION(toJSON)) { 147 value = %_CallFunction(value, key, toJSON); 275 var toJSON = value.toJSON; 276 if (IS_SPEC_FUNCTION(toJSON)) { 277 value = %_CallFunction(value, ToString(key), toJSON);
|
date.js | 869 "toJSON", DateToJSON
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
AttachmentComposeView.java | 48 attachStr = attachment.toJSON().toString(2);
|
/external/chromium_org/v8/src/ |
json.js | 152 var toJSON = value.toJSON; 153 if (IS_SPEC_FUNCTION(toJSON)) { 154 value = %_CallFunction(value, key, toJSON);
|
date.js | 825 "toJSON", DateToJSON
|
/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 | 220 final JSONObject json = toJSON(); 233 public synchronized JSONObject toJSON() { 306 * using {@link #toJSON()}. This returns null if the serialized instance was invalid or does
|
Attachment.java | 350 public JSONObject toJSON() throws JSONException { 374 final JSONObject jsonObject = toJSON(); 607 result.put(attachment.toJSON());
|
Account.java | 264 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/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 | 30 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...] |