mirror of
https://github.com/tc39/test262.git
synced 2025-07-01 19:24:42 +02:00
This code hasn't been touched in a while, so it's probably good to bring in the newest versions of the dependencies. We can easily tell if there was any incompatible effect on the output. The latest version of filenamify requires using ES modules. We also have to adapt to a breaking change in regexpu-core (see https://github.com/mathiasbynens/regexpu-core/pull/49). Also convert the dependencies to devDependencies, since this tool is not necessary for executing test262.
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
export default description => {
|
|
let header = `// Copyright (C) 2018 Leo Balter. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: prod-CharacterClassEscape
|
|
description: >
|
|
${description}
|
|
info: |
|
|
This is a generated test. Please check out
|
|
https://github.com/bocoup/test262-regexp-generator
|
|
for any changes.
|
|
|
|
CharacterClassEscape[U] ::
|
|
d
|
|
D
|
|
s
|
|
S
|
|
w
|
|
W
|
|
|
|
21.2.2.12 CharacterClassEscape
|
|
|
|
The production CharacterClassEscape :: d evaluates as follows:
|
|
Return the ten-element set of characters containing the characters 0 through 9 inclusive.
|
|
The production CharacterClassEscape :: D evaluates as follows:
|
|
Return the set of all characters not included in the set returned by CharacterClassEscape :: d.
|
|
The production CharacterClassEscape :: s evaluates as follows:
|
|
Return the set of characters containing the characters that are on the right-hand side of
|
|
the WhiteSpace or LineTerminator productions.
|
|
The production CharacterClassEscape :: S evaluates as follows:
|
|
Return the set of all characters not included in the set returned by CharacterClassEscape :: s.
|
|
The production CharacterClassEscape :: w evaluates as follows:
|
|
Return the set of all characters returned by WordCharacters().
|
|
The production CharacterClassEscape :: W evaluates as follows:
|
|
Return the set of all characters not included in the set returned by CharacterClassEscape :: w.
|
|
features: [String.fromCodePoint]
|
|
includes: [regExpUtils.js]
|
|
---*/\n`;
|
|
|
|
return header;
|
|
};
|