File
Blob: src/workerd/api/tests/rtti-test.js
| 1 | // Copyright (c) 2023 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | import assert from 'node:assert'; |
| 6 | import rtti from 'workerd:rtti'; |
| 7 | |
| 8 | export default { |
| 9 | async test(ctrl, env, ctx) { |
| 10 | const buffer = rtti.exportTypes('2023-05-18', ['nodejs_compat']); |
| 11 | assert(buffer.byteLength > 0); |
| 12 | }, |
| 13 | }; |