OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:toJSON
(Results
1 - 7
of
7
) sorted by null
/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
...]
/external/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/webkit/LayoutTests/fast/js/resources/
json2-es5-compat.js
30
When an object value is found, if the object contains a
toJSON
31
method, its
toJSON
method will be called and the result will be
32
stringified. A
toJSON
method does not serialize: it returns the
34
or undefined if nothing should be serialized. The
toJSON
method
40
Date.prototype.
toJSON
= function (key) {
155
test,
toJSON
, toString, valueOf
171
if (typeof Date.prototype.
toJSON
!== 'function') {
173
Date.prototype.
toJSON
= function (key) {
230
// If the value has a
toJSON
method, call it to obtain a replacement value.
233
typeof value.
toJSON
=== 'function')
[
all
...]
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
web_services.py
163
self.response.out.write(
toJSON
(updated_contacts))
343
def
toJSON
(object):
/external/webkit/Source/JavaScriptCore/runtime/
JSONObject.cpp
106
JSValue
toJSON
(JSValue, const PropertyNameForFunctionCall&);
320
inline JSValue Stringifier::
toJSON
(JSValue value, const PropertyNameForFunctionCall& propertyName)
323
if (!value.isObject() || !asObject(value)->hasProperty(m_exec, m_exec->globalData().propertyNames->
toJSON
))
326
JSValue toJSONFunction = asObject(value)->get(m_exec, m_exec->globalData().propertyNames->
toJSON
);
346
// Call the
toJSON
function.
347
value =
toJSON
(value, propertyName);
/external/webkit/Source/WebCore/inspector/front-end/UglifyJS/
process.js
294
toJSON
: function() {
[
all
...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.mortbay.jetty.util_6.1.23.v201004211559.jar
Completed in 856 milliseconds