Reviewers: Dmitry Lomov (chromium),

Message:
PTAL

Description:
Classes: Add test for method prototype

Methods should not have a prototype property

BUG=v8:3330
LOG=y

Please review this at https://codereview.chromium.org/678103004/

Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -0 lines):
  M test/mjsunit/harmony/classes.js


Index: test/mjsunit/harmony/classes.js
diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js index 3a22fd9b5427dcf74873f541744fcd65c42a7978..47fc8e97d84625104d84036c73d73a22afcd3275 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) {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to