2 kyu

How can I throw an error here?

716 of 719benpigchu

Description:

Write a function named bang throwing an Error with a message string "Just throw like this!"
with these limits:

  • no invoking require function
  • no invoking function constructors
  • no invoking eval function
  • no throw in your code
  • no Error in your code
  • no \ in your code

Also, we removed fs and vm from global scope, redefined assert, and removed assert from console.
Do not modify Error in global scope, we do not use it to check ( J/K, we do use it ).

Puzzles

More By Author:

Check out these other kata created by benpigchu

Stats:

CreatedJul 20, 2017
PublishedJul 20, 2017
Warriors Trained3081
Total Skips655
Total Code Submissions14564
Total Times Completed719
JavaScript Completions716
CoffeeScript Completions17
Total Stars112
% of votes with a positive feedback rating84% of 172
Total "Very Satisfied" Votes128
Total "Somewhat Satisfied" Votes33
Total "Not Satisfied" Votes11
Total Rank Assessments5
Average Assessed Rank
2 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
4 kyu
Ad
Contributors
  • benpigchu Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • metalim Avatar
  • Kacarott Avatar
Ad