File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 44 * See LICENSE file in root directory for full license.
55 */
66import assert from "assert"
7- import findLastIndex from "lodash/findLastIndex"
87import type {
98 ErrorCode ,
109 HasLocation ,
@@ -700,8 +699,7 @@ export class Parser {
700699 protected EndTag ( token : EndTag ) : void {
701700 debug ( "[html] EndTag %j" , token )
702701
703- const i = findLastIndex (
704- this . elementStack ,
702+ const i = this . elementStack . findLastIndex (
705703 ( el ) => el . name . toLowerCase ( ) === token . name ,
706704 )
707705 if ( i === - 1 ) {
Original file line number Diff line number Diff line change 1212 "esModuleInterop" : true ,
1313 "forceConsistentCasingInFileNames" : true ,
1414 "inlineSources" : true ,
15- "lib" : [" es2015 " ],
15+ "lib" : [" es2023 " ],
1616 "module" : " commonjs" ,
1717 "moduleResolution" : " node" ,
1818 "newLine" : " LF" ,
You can’t perform that action at this time.
0 commit comments