guest271314 (2019-06-15T22:57:03.000Z)
guest271314 at gmail.com (2019-06-15T23:18:46.590Z)
> Sorry, I meant to say “not entirely correct”. You have not yet confirmed if in fact the expected output is referencing a variable declared using ```const``` on the current line _before_ initialization _on the next line_ (or for that matter _N_ lines down from the current line). That example appears to deviate from the purpose and usage of ```const```, beyond the scope of ```nameof```, and if were implemented, a ```ReferenceError``` should _not_ be thrown when a ```const``` variable that has yet to be initialized _on the next line_ is referred to _on the current line_? Firefox ``` const f = (() => y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` Chromium ``` const f = (() => y)(); // Uncaught ReferenceError: Cannot access 'y' before initialization let y = 1; ``` Aside from that example, the code which essentially already implements ```nameof``` should be able to be found in the code which implements ```ReferenceError``` relevant to ```const```.
guest271314 at gmail.com (2019-06-15T23:15:56.034Z)
> Sorry, I meant to say “not entirely correct”. You have not yet confirmed if in fact the expected output is referencing a variable declared using ```const``` on the current line _before_ initialization _on the next line_ (or for that matter _N_ lines down from the current line). That example appears to deviate from the purpose and usage of ```const```, beyond the scope of ```nameof```, and if were implemented, a ```ReferenceError``` should _not_ be thrown when a ```const``` variable that has yet to be initialized _on the next line_ is referred to _on the current line_? Firefox ``` const f = (() => y)(); // ReferenceError: can't access lexical declaration `y' before initialization const y = 1; ``` Chromium ``` const f = (() => y)(); // Uncaught ReferenceError: Cannot access 'y' before initialization const y = 1; ``` Aside from that example, the code which essentially already implements ```nameof``` should be able to be found in the code which implements ```ReferenceError``` relevant to ```const```.
guest271314 at gmail.com (2019-06-15T23:12:26.374Z)
> Sorry, I meant to say “not entirely correct”. You have not yet confirmed if in fact the expected output is referencing a variable declared using ```const``` on the current line _before_ initialization _on the next line_. That example appears to deviate from the purpose and usage of ```const```, beyond the scope of ```nameof```, and if were implemented, a ```ReferenceError``` should _not_ be thrown when a ```const``` variable that has yet to be initialized _on the next line_ is referred to _on the current line_? Firefox ``` const f = (() => y)(); // ReferenceError: can't access lexical declaration `y' before initialization const y = 1; ``` Chromium ``` const f = (() => y)(); // Uncaught ReferenceError: Cannot access 'y' before initialization const y = 1; ``` Aside from that example, the code which essentially already implements ```nameof``` should be able to be found in the code which implements ```ReferenceError``` relevant to ```const```.
guest271314 at gmail.com (2019-06-15T23:07:51.097Z)
> Sorry, I meant to say “not entirely correct”. You have not yet confirmed if in fact the expected output is referencing a variable declared using ```const``` on the current line _before_ initialization _on the next line_. That example appears to deviate from the purpose and usage of ```const```, beyond the scope of ```nameof```, and if were implemented, a ```ReferenceError``` should _not_ be thrown when a ```const``` variable that has yet to be initialized _on the next line_ is referred to _on the current line_? ``` const f = (() => y)(); // Uncaught ReferenceError: Cannot access 'y' before initialization const y = 1; ``` Aside from that example, the code which essentially already implements ```nameof``` should be able to be found in the code which implements ```ReferenceError``` relevant to ```const```.