MCPcopy Create free account
hub / github.com/dop251/goja / ToNumber

Method ToNumber

string_unicode.go:396–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394}
395
396func (s unicodeString) ToNumber() Value {
397 return asciiString(s.toTrimmedUTF8()).ToNumber()
398}
399
400func (s unicodeString) ToObject(r *Runtime) *Object {
401 return r._newString(s, r.getStringPrototype())

Callers

nothing calls this directly

Calls 3

toTrimmedUTF8Method · 0.95
asciiStringTypeAlias · 0.85
ToNumberMethod · 0.65

Tested by

no test coverage detected