diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js')
-rw-r--r-- | js/src/tests/test262/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js b/js/src/tests/test262/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js new file mode 100644 index 0000000000..42adb4757d --- /dev/null +++ b/js/src/tests/test262/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js @@ -0,0 +1,23 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: RegExp.prototype.toString has not prototype property +es5id: 15.10.6.4_A6 +description: Checking RegExp.prototype.toString.prototype +includes: [isConstructor.js] +features: [Reflect.construct] +---*/ +assert.sameValue( + RegExp.prototype.toString.prototype, + undefined, + 'The value of RegExp.prototype.toString.prototype is expected to equal undefined' +); + +assert.sameValue( + isConstructor(RegExp.prototype.toString), + false, + 'isConstructor(RegExp.prototype.toString) must return false' +); + +reportCompare(0, 0); |