guest271314 (2019-06-15T23:29:44.000Z)
guest271314 at gmail.com (2019-06-16T00:11:07.948Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and line where y is initialized is not reached? do { await stuff() } while (1); const y = 1; ``` ? In the above example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling to check if ```y``` is initialized or not using ```try..catch``` and ```ReferenceError```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to indicaate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-16T00:04:13.353Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and line where y is initialized is not reached? do { await stuff() } while (1); const y = 1; ``` ? In the above example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling (e.g., using `requestAnimationFrame`) if ```y``` was initialized or not using ```try..catch``` and ```ReferenceError```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to indicaate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-16T00:03:13.909Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and the next line is not reached? do { await stuff() } while (1); const y = 1; ``` ? In the above example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling (e.g., using `requestAnimationFrame`) if ```y``` was initialized or not using ```try..catch``` and ```ReferenceError```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to indicaate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:55:39.777Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and the next line is not reached? const y = 1; ``` ? In the above example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling (e.g., using `requestAnimationFrame`) if ```y``` was initialized or not using ```try..catch``` and ```ReferenceError```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to indicaate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:54:58.396Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and the next line is not reached? const y = 1; ``` ? In the above example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling (e.g., using `requestAnimationFrame`) if ```y``` was initialized or not using ```try..catch``` and ```ReferenceError```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to demonstrate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:54:16.410Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and the next line is not reached? const y = 1; ``` ? In the above example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling (e.g., using `requestAnimationFrame`) if ```y``` was initialized or not using ```try..catch```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to demonstrate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:51:59.796Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and the next line is not reached? const y = 1; ``` ? In the abbove example code, if ```y``` is declared as a JavaScript plain object, could not the _value_ of ```y``` be (arbitrarily) mutated by the above code initiated _before_ the actual initialization by polling if ```y``` was initialized or not using ```try..catch```? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to demonstrate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:36:58.757Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? // what happens where errors are thrown in the code above and the next line is not reached? const y = 1; ``` ? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to demonstrate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:33:22.742Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? const y = 1; ``` ? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to demonstrate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simply because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?
guest271314 at gmail.com (2019-06-15T23:32:38.442Z)
What should occur where the code is ``` const x = nameof y await new Promise(resolve => setTimeout(resolve, 100000)); // should x be "y" here? await new Promise(resolve => setTimeout(resolve, 200000)); // should x be "y" here? await Promise.all([new Promise(resolve => setTimeout(resolve, 300000)), ...doStuff()]); // should x be "y" here? const y = 1; ``` ? The immediately invoked arrow function example (where a ```RefeferenceError``` is thrown) appears to demonstrate that to output the expected result of ```nameof``` within the context of the code example ``` const x = nameof y const y = 1; ``` is a proposal for _more_ than only getting the _name_ of an _declared_ and _initialized_ variable? Should a ```RefefenceError``` _not_ be thrown simple because ```nameof``` is used in this case ``` const f = (() => nameof y)(); // ReferenceError: can't access lexical declaration `y' before initialization let y = 1; ``` ?