Skip to content

Commit 560b3de

Browse files
committed
[js] Fix typo
1 parent f1aae04 commit 560b3de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

javascript/node/selenium-webdriver/bidi/protocolValue.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const TYPE_CONSTANT = 'type'
2525
const VALUE_CONSTANT = 'value'
2626
const RemoteReferenceType = {
2727
HANDLE: 'handle',
28-
SHARED_ID: 'shareId',
28+
SHARED_ID: 'sharedId',
2929
}
3030

3131
class LocalValue {
@@ -165,12 +165,12 @@ class RemoteValue {
165165
}
166166

167167
class ReferenceValue {
168-
constructor(handle, shareId) {
168+
constructor(handle, sharedId) {
169169
if (handle === RemoteReferenceType.HANDLE) {
170-
this.handle = shareId
170+
this.handle = sharedId
171171
} else {
172172
this.handle = handle
173-
this.shareId = shareId
173+
this.sharedId = sharedId
174174
}
175175
}
176176

@@ -180,8 +180,8 @@ class ReferenceValue {
180180
toReturn[RemoteReferenceType.HANDLE] = this.handle
181181
}
182182

183-
if (this.shareId != null) {
184-
toReturn[RemoteReferenceType.SHARED_ID] = this.shareId
183+
if (this.sharedId != null) {
184+
toReturn[RemoteReferenceType.SHARED_ID] = this.sharedId
185185
}
186186

187187
return toReturn

0 commit comments

Comments
 (0)