Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block Scope is filename dependent but description does not note that #76

Open
NamespaceValentine opened this issue May 17, 2016 · 3 comments

Comments

@NamespaceValentine
Copy link

The wording of the Block Scope exercise recommends using program.js as the filename, but will fail in all cases where the filename is not "solution.js" because it reads the error message path. Either this should be noted in the description of the problem, or the diff should be done using the filename given by the verify. The latter would be preferable.

@probil
Copy link

probil commented Jun 16, 2016

The same issue. I get this output for different filename

 ACTUAL                                 EXPECTED                
==================================================
   "4"                                 ==    "4"                                
   "8"                                 ==    "8"                                
   "5"                                 ==    "5"                                
   "3"                                 ==    "3"    
   "ReferenceError: c is not defined"  ==    "ReferenceError: c is not defined" 
   "    at Object.<anonymous> (/tmp/_babel_27350/solution1.js:22:7)" !=    "    at Object.<anonymous> (/tmp/_babel_27350/solution.js:16:5)"
   "    at Module._compile (module.js:541:32)" ==    "    at Module._compile (module.js:541:32)"
   "    at Object.Module._extensions..js (module.js:550:10)" ==    "    at Object.Module._extensions..js (module.js:550:10)"
   "    at Module.load (module.js:458:32)" ==    "    at Module.load (module.js:458:32)"
   "    at tryModuleLoad (module.js:417:12)" ==    "    at tryModuleLoad (module.js:417:12)"
   "    at Function.Module._load (module.js:409:3)" ==    "    at Function.Module._load (module.js:409:3)"
   "    at Function.Module.runMain (module.js:575:10)" ==    "    at Function.Module.runMain (module.js:575:10)"
   "    at startup (node.js:160:18)"   ==    "    at startup (node.js:160:18)"  
   "    at node.js:456:3"              ==    "    at node.js:456:3"             
   ""                                  ==    ""      

@prochafilho
Copy link

Thank you for clarifying that. I am surprised that more people don't notice that.

@rubramriv73
Copy link

Easy solution to this issue:
catch(e){
console.log(e.message)
}

in both solution.js and program.js

Hope it get resolved by that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants