summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Map/prototype/size/size.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Map/prototype/size/size.js')
-rw-r--r--js/src/tests/test262/built-ins/Map/prototype/size/size.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Map/prototype/size/size.js b/js/src/tests/test262/built-ins/Map/prototype/size/size.js
new file mode 100644
index 0000000000..c13c0c58ac
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Map/prototype/size/size.js
@@ -0,0 +1,31 @@
+// Copyright (C) 2015 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+esid: sec-get-map.prototype.size
+description: >
+ Property type and descriptor.
+info: |
+ get Map.prototype.size
+
+ 17 ECMAScript Standard Built-in Objects
+
+includes: [propertyHelper.js]
+---*/
+
+var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size');
+
+assert.sameValue(
+ typeof descriptor.get,
+ 'function',
+ 'typeof descriptor.get is function'
+);
+assert.sameValue(
+ typeof descriptor.set,
+ 'undefined',
+ 'typeof descriptor.set is undefined'
+);
+
+verifyNotEnumerable(Map.prototype, 'size');
+verifyConfigurable(Map.prototype, 'size');
+
+reportCompare(0, 0);