Index: test/mjsunit/harmony/reflect.js |
diff --git a/test/mjsunit/harmony/reflect.js b/test/mjsunit/harmony/reflect.js |
index fc52c93d197c598978064b710f1e57648a44c691..f34a1ed81b2502440b895355f7d9ec2f00c03596 100644 |
--- a/test/mjsunit/harmony/reflect.js |
+++ b/test/mjsunit/harmony/reflect.js |
@@ -256,3 +256,23 @@ function prepare(tgt) { |
assertFalse(Reflect.isExtensible(tgt)); |
} |
})(); |
+ |
+ |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// Reflect.enumerate |
+ |
+ |
+(function testReflectEnumerateArity() { |
+ assertEquals(1, Reflect.enumerate.length); |
+})(); |
+ |
+ |
+(function testReflectEnumerateOnNonObject() { |
+ assertThrows(function() { Reflect.enumerate(); }, TypeError); |
+ assertThrows(function() { Reflect.enumerate(42); }, TypeError); |
+ assertThrows(function() { Reflect.enumerate(null); }, TypeError); |
+})(); |
+ |
+ |
+// See reflect-enumerate*.js for further tests. |