<p dir="auto">Deno panics when running <code class="notranslate">deno run --v8-flags=--disallow-code-generation-from-strings index.ts</code></p>
<p dir="auto">index.ts:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(&quot;Hello World!&quot;);"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Hello World!"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Platform: windows x86_64
Version: 1.29.2
Args: [&quot;deno&quot;, &quot;run&quot;, &quot;--v8-flags=--disallow-code-generation-from-strings&quot;, &quot;TestFlags.ts&quot;]

thread 'main' panicked at 'Failed to execute bootstrap script: EvalError: Code generation from strings disallowed for this context
    at new Function (&lt;anonymous&gt;)
    at genAsyncOp (deno:core/01_core.js:176:14)
    at Object.initializeAsyncOps (deno:core/01_core.js:220:19)
    at Object.bootstrapMainRuntime [as mainRuntime] (deno:runtime/js/99_main.js:398:10)
    at [deno:runtime\worker.rs:327:24]:1:11', runtime\worker.rs:328:8"><pre class="notranslate"><code class="notranslate">Platform: windows x86_64
Version: 1.29.2
Args: ["deno", "run", "--v8-flags=--disallow-code-generation-from-strings", "TestFlags.ts"]

thread 'main' panicked at 'Failed to execute bootstrap script: EvalError: Code generation from strings disallowed for this context
    at new Function (&lt;anonymous&gt;)
    at genAsyncOp (deno:core/01_core.js:176:14)
    at Object.initializeAsyncOps (deno:core/01_core.js:220:19)
    at Object.bootstrapMainRuntime [as mainRuntime] (deno:runtime/js/99_main.js:398:10)
    at [deno:runtime\worker.rs:327:24]:1:11', runtime\worker.rs:328:8
</code></pre></div>
<p dir="auto">Me and at least one other using Netlify edge functions are seeing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'main' panicked at 'Failed to execute bootstrap script: EvalError: Code generation from strings disallowed for this context"><pre class="notranslate"><code class="notranslate">thread 'main' panicked at 'Failed to execute bootstrap script: EvalError: Code generation from strings disallowed for this context
</code></pre></div>
<p dir="auto">I tried downgrading to <code class="notranslate">1.27.0</code> and the panic went away.<br>
More info <a href="https://answers.netlify.com/t/nextjs-netlify-cli-deno-panic-due-to-next-dev-edge-function/78563" rel="nofollow">here</a></p>