denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97k stars 5.36k forks source link

Deno does not enforce `const` #17376

Closed sgammon closed 1 year ago

sgammon commented 1 year ago

Hello esteemed Deno authors,

I was playing around in Deno today and caught this:

Screenshot 2023-01-12 at 11 07 06 AM

Is this intended behavior? Am I missing a flag?

sgammon commented 1 year ago

i had invoked with "deno" (on macOS Ventura M1, version of deno depicted)

DjDeveloperr commented 1 year ago

It is the intended behavior, only for the REPL. It also works in Chrome DevTools:

image

sgammon commented 1 year ago

@DjDeveloperr i see, thank you 👍🏻