fix: add column, line, and method check to integrity check (#25094)

This commit is contained in:
Ryan Manuel
2022-12-12 14:42:46 -06:00
committed by GitHub
parent 2062670f5c
commit 8888cd9e21
8 changed files with 195 additions and 13 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
const Module = require('module')
const path = require('path')
import Module from 'module'
import path from 'path'
import { runBytecodeAsModule } from 'bytenode'
process.env.CYPRESS_INTERNAL_ENV = process.env.CYPRESS_INTERNAL_ENV || 'production'
try {
require('bytenode')
const filename = path.join(__dirname, 'packages', 'server', 'index.jsc')
const dirname = path.dirname(filename)
Module._extensions['.jsc']({
runBytecodeAsModule({
require: module.require,
id: filename,
filename,