Debian Codegraph @

packages/babel-core/test/fixtures/plugins/transform-error/exec.js

raw
1 var code = "function f() {}";
2 transform(code, {
3 plugins: [
4 function() {
5 return {
6 visitor: {
7 FunctionDeclaration: function(path) {
8 throw new Error("someMsg");
9 },
10 },
11 };
12 },
13 ],
14 filename: "/fake/path/example.js"
15 });