7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
(function (val, name, undef) {
|
|
if (val === undef) {
|
|
throw new ReferenceError(name + " is not defined - temporal dead zone");
|
|
}
|
|
return true;
|
|
})
|