summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/prototype/flags/prop-desc.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/prototype/flags/prop-desc.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/prototype/flags/prop-desc.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/flags/prop-desc.js b/js/src/tests/test262/built-ins/RegExp/prototype/flags/prop-desc.js
new file mode 100644
index 0000000000..ad0bf43336
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/prototype/flags/prop-desc.js
@@ -0,0 +1,26 @@
+// Copyright (C) 2017 Aleksey Shvayka. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-get-regexp.prototype.flags
+description: >
+ get RegExp.prototype.flags property descriptor
+info: |
+ get RegExp.prototype.flags
+
+ RegExp.prototype.flags is an accessor property whose set accessor
+ function is undefined
+includes: [propertyHelper.js]
+---*/
+
+var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags');
+
+assert.sameValue(typeof d.get, 'function', 'typeof d.get');
+assert.sameValue(d.set, undefined, 'd.set');
+
+verifyProperty(RegExp.prototype, 'flags', {
+ enumerable: false,
+ configurable: true,
+});
+
+reportCompare(0, 0);