Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / non-object-proto.js
bloba091fdaa6b2c9653094b7c81bd5b54e6d76e98d2
1 description(
2 'This test checks that setting a non-object, non-null value for __proto__ does not lead to a crash when next setting a property on the object. This was reported as <a href="http://bugs.webkit.org/show_bug.cgi?id=17925">bug 17925</a>.'
3 );
5 x = {};
6 originalProto = x.__proto__;
7 x.__proto__ = 1;
8 shouldBe("x.__proto__", "originalProto");
10 x.someProperty = 1;
11 debug('If we got to this point then we did not crash and the test has passed.');