Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-50-class-to-string / test-x-index.js
202 bytesRaw
1 | ; |
2 | |
3 | const Class = class {}; |
4 | // test if Class.toString() segfaults |
5 | // or returns incorrect value (#62) |
6 | const cts = Class.toString(); |
7 | if (cts.indexOf('class {}') >= 0) { |
8 | console.log('ok'); |
9 | } |
10 |
Built with git-ssb-web