MCPcopy Create free account
hub / github.com/cypress-io/cypress / validateToString

Function validateToString

scripts/binary/binary-integrity-check-source.js:90–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90function validateToString () {
91 if (originalToString.call !== originalCallFn) {
92 console.error(`Integrity check failed for toString.call`)
93 throw new Error(integrityErrorMessage)
94 }
95}
96
97function validateElectron (electron) {
98 // Hard coded function as this is electron code and there's not an easy way to get the function string at package time. If this fails on an updated version of electron, we'll need to update this.

Callers 1

integrityCheckFunction · 0.85

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected