summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/json2.js
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-03-18 00:33:01 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2014-03-18 00:33:01 +0400
commit4d140746f0978da2a6493b92d3b6de4b18f3394d (patch)
tree69d76bb397ca1dde203a5d7535ecc33c58c85f25 /deps/v8/test/mjsunit/json2.js
parentee4b9b552dee37ed5844da6c261e4d28a33d3c13 (diff)
downloadandroid-node-v8-4d140746f0978da2a6493b92d3b6de4b18f3394d.tar.gz
android-node-v8-4d140746f0978da2a6493b92d3b6de4b18f3394d.tar.bz2
android-node-v8-4d140746f0978da2a6493b92d3b6de4b18f3394d.zip
deps: update v8 to 3.24.35.17
Diffstat (limited to 'deps/v8/test/mjsunit/json2.js')
-rw-r--r--deps/v8/test/mjsunit/json2.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/json2.js b/deps/v8/test/mjsunit/json2.js
index 0894d779ac..f048f05290 100644
--- a/deps/v8/test/mjsunit/json2.js
+++ b/deps/v8/test/mjsunit/json2.js
@@ -105,6 +105,10 @@ var tojson_via_getter = { get toJSON() {
a: 1 };
TestStringify('321', tojson_via_getter);
+assertThrows(function() {
+ JSON.stringify({ get toJSON() { throw "error"; } });
+});
+
// Test toJSON with key.
tojson_obj = { toJSON: function(key) { return key + key; } };
var tojson_with_key_1 = { a: tojson_obj, b: tojson_obj };