Files
next.js/test/integration/edge-runtime-dynamic-code/lib/utils.js
T
Niklas MischkulnigandGitHub 7861621f58 test: Refactor edge-runtime-dynamic-code test (#83390)
This test is about `eval`
But it also used a non-static middleware `matchers` config, which is going to break once we are more strict about this and throw a build error.
2025-09-03 23:22:16 +02:00

14 lines
281 B
JavaScript

export async function usingEval() {
// eslint-disable-next-line no-eval
return { value: eval('100') }
}
export async function notUsingEval() {
return { value: 100 }
}
export function usingEvalSync() {
// eslint-disable-next-line no-eval
return { value: eval('100') }
}