From: yangguo@chromium.org Date: Wed, 16 May 2012 12:26:11 +0000 (+0000) Subject: Amend regression test. X-Git-Tag: upstream/4.7.83~16701 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81720ffe8459010c1ceeab7e480369a02db89f80;p=platform%2Fupstream%2Fv8.git Amend regression test. R=rossberg@chromium.org BUG=128146 TEST= Review URL: https://chromiumcodereview.appspot.com/10382196 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11580 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/test/mjsunit/regress/regress-128146.js b/test/mjsunit/regress/regress-128146.js index 012a47c..5c22b4e 100644 --- a/test/mjsunit/regress/regress-128146.js +++ b/test/mjsunit/regress/regress-128146.js @@ -28,3 +28,11 @@ Object.defineProperty({},"foo",{set:function(){},configurable:false}); Object.defineProperty({},"foo",{get:function(){},configurable:false}); Object.defineProperty({},"foo",{}); + +// From WebKit layout tests (fast/js/prototypes.html) +var wasSet = false; +var o = { }; +o.__defineGetter__("__proto__", function() { wasSet = true }); +o.__proto__; +assertFalse(wasSet); +