import { define } from "../scripts/class-definitions"; const names = ["SHA1", "MD5", "MD4", "SHA224", "SHA512", "SHA384", "SHA256", "SHA512_256"]; const named = names.map(name => { return define({ name: name, construct: true, finalize: true, configurable: false, klass: { hash: { fn: "hash", length: 2, }, byteLength: { getter: "getByteLengthStatic", }, }, JSType: "0b11101110", proto: { digest: { fn: "digest", length: 0, }, update: { fn: "update", length: 1, }, byteLength: { getter: "getByteLength", }, }, }); }); export default [ ...named, define({ name: "CryptoHasher", construct: true, finalize: true, klass: { hash: { fn: "hash", length: 2, }, algorithms: { getter: "getAlgorithms", cache: true, }, }, JSType: "0b11101110", proto: { digest: { fn: "digest", length: 0, }, algorithm: { getter: "getAlgorithm", cache: true, }, update: { fn: "update", length: 2, }, copy: { fn: "copy", length: 0, }, byteLength: { getter: "getByteLength", }, }, }), ]; -lock Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/snippets/string-escapes.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-05-09[napi] Move some code to C++ for perfGravatar Jarred Sumner 2-158/+181
2022-05-09[napi] Support `import` and `require` of `.node` modulesGravatar Jarred Sumner 6-53/+80
2022-05-09[napi] Fix stringsGravatar Jarred Sumner 1-108/+142
2022-05-09fixupGravatar Jarred Sumner 2-40/+45
2022-05-09[JS Parser] Support `__dirname` and `__filename`Gravatar Jarred Sumner 1-28/+44
2022-05-08Make a lot more stuff workGravatar Jarred Sumner 5-91/+220