diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/prototype/global/15.10.7.2-2.js')
-rw-r--r-- | js/src/tests/test262/built-ins/RegExp/prototype/global/15.10.7.2-2.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/global/15.10.7.2-2.js b/js/src/tests/test262/built-ins/RegExp/prototype/global/15.10.7.2-2.js new file mode 100644 index 0000000000..c615203c44 --- /dev/null +++ b/js/src/tests/test262/built-ins/RegExp/prototype/global/15.10.7.2-2.js @@ -0,0 +1,19 @@ +// Copyright (c) 2012 Ecma International. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +es5id: 15.10.7.2-2 +description: > + RegExp.prototype.global is an accessor property whose set accessor + function is undefined +---*/ + + var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global'); + + +assert.sameValue(typeof desc.get, 'function', 'typeof desc.get'); +assert.sameValue(desc.set, undefined, 'desc.set'); +assert.sameValue(desc.enumerable, false, 'desc.enumerable'); +assert.sameValue(desc.configurable, true, 'desc.configurable'); + +reportCompare(0, 0); |