R=verwaest@chromium.org
BUG=
Review URL: https://chromiumcodereview.appspot.com/
11185050
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12757
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
uc32 c0 = c0_;
do {
if (c0 == '\\') {
+ c0_ = c0;
+ int beg_pos = position_;
+ position_ = position;
return SlowScanJsonString<SeqAsciiString, char>(source_,
- position_,
- position);
+ beg_pos,
+ position_);
}
if (c0 < 0x20) return Handle<String>::null();
running_hash = StringHasher::AddCharacterCore(running_hash, c0);
assertEquals(Object.prototype, o.__proto__); // __proto__ isn't changed.
assertEquals(0, Object.keys(o).length); // __proto__ isn't added as enumerable.
-
-
+var json = '{"stuff before slash\\\\stuff after slash":"whatever"}';
+assertEquals(json, JSON.stringify(JSON.parse(json)));