Commit generated code (#10331)
* update prettier generated artifacts * chore: sync babel-helpers to artifacts
This commit is contained in:
committed by
Nicolò Ribaudo
parent
051965052c
commit
22df2ae244
@@ -1,8 +1,5 @@
|
||||
import undef from "./temporalUndefined";
|
||||
import err from "./tdz";
|
||||
export default function _temporalRef(val, name) {
|
||||
if (val === undef) {
|
||||
throw new ReferenceError(name + " is not defined - temporal dead zone");
|
||||
} else {
|
||||
return val;
|
||||
}
|
||||
return val === undef ? err(name) : val;
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
var temporalUndefined = require("./temporalUndefined");
|
||||
|
||||
var tdz = require("./tdz");
|
||||
|
||||
function _temporalRef(val, name) {
|
||||
if (val === temporalUndefined) {
|
||||
throw new ReferenceError(name + " is not defined - temporal dead zone");
|
||||
} else {
|
||||
return val;
|
||||
}
|
||||
return val === temporalUndefined ? tdz(name) : val;
|
||||
}
|
||||
|
||||
module.exports = _temporalRef;
|
||||
Reference in New Issue
Block a user