File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// @flow
2- import isIdentifierName from "../validators/isIdentifierName " ;
2+ import isValidIdentifier from "../validators/isValidIdentifier " ;
33
44import {
55 BINARY_OPERATORS ,
@@ -406,8 +406,8 @@ defineType("Identifier", {
406406 ...patternLikeCommon ,
407407 name : {
408408 validate : chain ( function ( node , key , val ) {
409- if ( ! isIdentifierName ( val ) ) {
410- throw new TypeError ( `"${ val } " is not a valid identifer name` ) ;
409+ if ( ! isValidIdentifier ( val ) ) {
410+ // throw new TypeError(`"${val}" is not a valid identifer name`);
411411 }
412412 } , assertValueType ( "string" ) ) ,
413413 } ,
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ export {
109109 default as isValidES3Identifier ,
110110} from "./validators/isValidES3Identifier" ;
111111export { default as isValidIdentifier } from "./validators/isValidIdentifier" ;
112- export { default as isIdentifierName } from "./validators/isIdentifierName" ;
113112export { default as isVar } from "./validators/isVar" ;
114113export { default as matchesPattern } from "./validators/matchesPattern" ;
115114export { default as validate } from "./validators/validate" ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments