source: trip-planner-front/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 338 bytes
RevLine 
[6a3a178]1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = toBindingIdentifierName;
7
8var _toIdentifier = require("./toIdentifier");
9
10function toBindingIdentifierName(name) {
11 name = (0, _toIdentifier.default)(name);
12 if (name === "eval" || name === "arguments") name = "_" + name;
13 return name;
14}
Note: See TracBrowser for help on using the repository browser.