Converts the string to a V8 string.
(&'static self, scope: &PinScope<'scope, '_>)
| 39 | |
| 40 | /// Converts the string to a V8 string. |
| 41 | pub(super) fn string<'scope>(&'static self, scope: &PinScope<'scope, '_>) -> LString<'scope> { |
| 42 | v8::String::new_from_onebyte_const(scope, &self.0) |
| 43 | .expect("`create_external_onebyte_const` should've asserted `.len() < kMaxLength`") |
| 44 | } |
| 45 | |
| 46 | /// Converts the string to a V8 symbol using [`Symbol::for_api`]. |
| 47 | pub(super) fn symbol<'scope>(&'static self, scope: &PinScope<'scope, '_>) -> Local<'scope, Symbol> { |
no outgoing calls
no test coverage detected