Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update prettier generated artifacts * chore: sync babel-helpers to artifacts
- Loading branch information
1 parent
0519650
commit 22df2ae
Showing
5 changed files
with
12 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters