diff options
author | Michaël Zasso <targos@protonmail.com> | 2022-04-19 09:00:36 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-04-21 11:54:15 +0200 |
commit | 6bbc5596b13828a5274a8aeaea4929bdc22168a4 (patch) | |
tree | 3fa11feb9240c699aff627e049d33c358a7320a4 /deps/v8/tools/turbolizer/src/selection.ts | |
parent | 0d58c0be3e1c3013959c02d42a2a2f21dd31c5f8 (diff) | |
download | node-new-6bbc5596b13828a5274a8aeaea4929bdc22168a4.tar.gz |
deps: update V8 to 10.2.154.2
PR-URL: https://github.com/nodejs/node/pull/42740
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Diffstat (limited to 'deps/v8/tools/turbolizer/src/selection.ts')
-rw-r--r-- | deps/v8/tools/turbolizer/src/selection.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/v8/tools/turbolizer/src/selection.ts b/deps/v8/tools/turbolizer/src/selection.ts index 044a1969c3..a3f3dd941f 100644 --- a/deps/v8/tools/turbolizer/src/selection.ts +++ b/deps/v8/tools/turbolizer/src/selection.ts @@ -2,13 +2,17 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import { GNode } from "./node"; + export class MySelection { selection: any; stringKey: (o: any) => string; + originStringKey: (node: GNode) => string; - constructor(stringKeyFnc) { + constructor(stringKeyFnc, originStringKeyFnc?) { this.selection = new Map(); this.stringKey = stringKeyFnc; + this.originStringKey = originStringKeyFnc; } isEmpty(): boolean { @@ -50,7 +54,7 @@ export class MySelection { } detachSelection() { - const result = this.selectedKeys(); + const result = this.selection; this.clear(); return result; } |