diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-18 00:33:01 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-18 00:33:01 +0400 |
commit | 4d140746f0978da2a6493b92d3b6de4b18f3394d (patch) | |
tree | 69d76bb397ca1dde203a5d7535ecc33c58c85f25 /deps/v8/test/mjsunit/json2.js | |
parent | ee4b9b552dee37ed5844da6c261e4d28a33d3c13 (diff) | |
download | android-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.js | 4 |
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 }; |