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 4
4
* See LICENSE file in root directory for full license.
5
5
*/
6
6
import assert from "assert"
7
- import findLastIndex from "lodash/findLastIndex"
8
7
import type {
9
8
ErrorCode ,
10
9
HasLocation ,
@@ -700,8 +699,7 @@ export class Parser {
700
699
protected EndTag ( token : EndTag ) : void {
701
700
debug ( "[html] EndTag %j" , token )
702
701
703
- const i = findLastIndex (
704
- this . elementStack ,
702
+ const i = this . elementStack . findLastIndex (
705
703
( el ) => el . name . toLowerCase ( ) === token . name ,
706
704
)
707
705
if ( i === - 1 ) {
Original file line number Diff line number Diff line change 12
12
"esModuleInterop" : true ,
13
13
"forceConsistentCasingInFileNames" : true ,
14
14
"inlineSources" : true ,
15
- "lib" : [" es2015 " ],
15
+ "lib" : [" es2023 " ],
16
16
"module" : " commonjs" ,
17
17
"moduleResolution" : " node" ,
18
18
"newLine" : " LF" ,
You can’t perform that action at this time.
0 commit comments