Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/escape/is-function.js

raw
1 // |reftest| shell-option(--enable-regexp-escape) skip-if(!RegExp.escape||!xulRuntime.shell) -- RegExp.escape is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2024 Leo Balter. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-regexp.escape
7 description: RegExp.escape is a function
8 info: |
9 RegExp.escape is a built-in function of the RegExp object.
10 features: [RegExp.escape]
11 ---*/
12
13 assert.sameValue(typeof RegExp.escape, 'function', 'RegExp.escape is a function');
14
15 reportCompare(0, 0);