Searched defs:toJSON (Results 1 - 6 of 6) sorted by relevance

/external/v8/test/mjsunit/
H A Djson.js28 // 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/
H A Djson2.js38 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/
H A Djson2-es5-compat.js30 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
[all...]
/external/webkit/Source/JavaScriptCore/runtime/
H A DJSONObject.cpp106 JSValue toJSON(JSValue, const PropertyNameForFunctionCall&);
320 inline JSValue Stringifier::toJSON(JSValue value, const PropertyNameForFunctionCall& propertyName) function in class:JSC::Stringifier
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/
H A Dprocess.js294 toJSON: function() {
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.mortbay.jetty.util_6.1.23.v201004211559.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 193 milliseconds