From: arv@chromium.org Date: Tue, 28 Oct 2014 13:39:41 +0000 (+0000) Subject: Classes: Add test for method prototype X-Git-Tag: upstream/4.7.83~6063 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c2dffc380ca32d9e64e2884977e22fb2a207399;p=platform%2Fupstream%2Fv8.git Classes: Add test for method prototype Methods should not have a prototype property BUG=v8:3330 LOG=y R=dslomov@chromium.org Review URL: https://codereview.chromium.org/678103004 Cr-Commit-Position: refs/heads/master@{#24939} git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24939 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js index 3a22fd9..47fc8e9 100644 --- a/test/mjsunit/harmony/classes.js +++ b/test/mjsunit/harmony/classes.js @@ -172,6 +172,7 @@ function assertMethodDescriptor(object, name) { assertTrue(descr.enumerable); assertTrue(descr.writable); assertEquals('function', typeof descr.value); + assertFalse('prototype' in descr.value); } function assertGetterDescriptor(object, name) {