mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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.
14 lines
281 B
JavaScript
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') }
|
|
}
|