Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-claudia committed Dec 18, 2018
1 parent 14ef010 commit 6b54a46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/configCases/web/node-source/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
eval("require = undefined")

it("should compile fine", () => {
global
// It's okay if this executes fine or if `global` is not defined. If it
// results in a `require()` call, this will throw a `TypeError` instead.
try {
global
} catch (e) {
if (!(e instanceof ReferenceError)) throw e
}
})

0 comments on commit 6b54a46

Please sign in to comment.