MCPcopy Create free account
hub / github.com/nodejs/node / isValidSymbolString

Function isValidSymbolString

deps/v8/test/mjsunit/harmony/private.js:37–39  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

35// array. Adjust if you extend 'symbols' with other
36// values.
37function isValidSymbolString(s) {
38 return ["Symbol(66)"].indexOf(s) >= 0;
39}
40
41
42// Test different forms of constructor calls, all equivalent.

Callers 3

TestToStringFunction · 0.70
TestGetFunction · 0.70
TestSetFunction · 0.70

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected