You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inline values are shown for a variable in different scope if it has same name in current scope #19215
Isidor Nikolic (@isidorn) It's our smoke test express repository and modified the file index.js. Here is the code
varexpress=require('express');varrouter=express.Router();functionc(){return{a: 1}}/* GET home page. */router.get('/',function(req,res,next){vara=1234;if(a===1234){a=3;varb=2345;vara=4;}else{varb=5678;}a=c().a;a=5678;console.log(c);res.render('index',{title: 'Express'});});module.exports=router;
Activity
isidorn commentedon Jan 24, 2017
Sandeep Somavarapu (@sandy081) please provide this repository so I can easily reporduce this - thanks
sandy081 commentedon Jan 24, 2017
Isidor Nikolic (@isidorn) It's our smoke test express repository and modified the file
index.js. Here is the codeisidorn commentedon Jan 24, 2017
Sandeep Somavarapu (@sandy081) thank you
sandy081 commentedon Jan 24, 2017
Isidor Nikolic (@isidorn) Updated the description it is happening with Node not with Node2. If scopes are not supported by Node, please close it
isidorn commentedon Jan 24, 2017
Scopes are not supported by node