You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
338 B
JavaScript
10 lines
338 B
JavaScript
"use strict";
|
|
|
|
const assert = require("assert");
|
|
|
|
// This utility function serves to unpack an expression from an ExpressionStatement node; in many cases, @babel/template insists on wrapping every expression in such a statement.
|
|
module.exports = function (node) {
|
|
assert(node.type === "ExpressionStatement");
|
|
return node.expression;
|
|
};
|