OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:toJSON
(Results
1 - 11
of
11
) sorted by null
/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
...]
/external/chromium_org/v8/test/webkit/resources/
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/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);
/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
...]
/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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.mortbay.jetty.util_6.1.23.v201004211559.jar
/external/chromium_org/v8/test/cctest/
test-api.cc
[
all
...]
/external/chromium_org/chrome/third_party/chromevox/
chromeVoxChromeOptionsScript.js
48
cvox.KeyMap.prototype.bindings=function(){return this.bindings_};cvox.KeyMap.prototype.
toJSON
=function(){return JSON.stringify({bindings:this.bindings_})};cvox.KeyMap.prototype.toLocalStorage=function(){localStorage.keyBindings=this.
toJSON
()};cvox.KeyMap.prototype.hasCommand=function(a){if(null!=this.commandToKey_)return void 0!=this.commandToKey_[a];for(var b=0;b<this.bindings_.length;b++){var c=this.bindings_[b];if(c.command==a)return!0}return!1};
[
all
...]
Completed in 1097 milliseconds