| 41 | static const char s[] = {'s', 't', 'r', 'i', 'n', 'g', '\0'}; |
| 42 | |
| 43 | class ExtString : public v8::String::ExternalStringResource { |
| 44 | public: |
| 45 | ~ExtString() { } |
| 46 | const uint16_t *data() const { return ws; } |
| 47 | size_t length() const { return sizeof (ws) / sizeof (*ws) - 1; } |
| 48 | }; |
| 49 | |
| 50 | |
| 51 | class ExtAsciiString : public ExternalOneByteStringResource { |
nothing calls this directly
no outgoing calls
no test coverage detected