aboutsummaryrefslogtreecommitdiffstats
path: root/src/JSON.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSON.js')
-rw-r--r--src/JSON.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/JSON.js b/src/JSON.js
index de718527..9fca3bcb 100644
--- a/src/JSON.js
+++ b/src/JSON.js
@@ -72,7 +72,7 @@ function toJsonArray(buf, obj, pretty, stack) {
sep = true;
}
buf.push("]");
- } else if (obj instanceof Date) {
+ } else if (isDate(obj)) {
buf.push(angular['String']['quoteUnicode'](angular['Date']['toString'](obj)));
} else {
buf.push("{");