Skip to content

Commit

Permalink
[js] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Dec 7, 2023
1 parent f1aae04 commit 560b3de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions javascript/node/selenium-webdriver/bidi/protocolValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const TYPE_CONSTANT = 'type'
const VALUE_CONSTANT = 'value'
const RemoteReferenceType = {
HANDLE: 'handle',
SHARED_ID: 'shareId',
SHARED_ID: 'sharedId',
}

class LocalValue {
Expand Down Expand Up @@ -165,12 +165,12 @@ class RemoteValue {
}

class ReferenceValue {
constructor(handle, shareId) {
constructor(handle, sharedId) {
if (handle === RemoteReferenceType.HANDLE) {
this.handle = shareId
this.handle = sharedId
} else {
this.handle = handle
this.shareId = shareId
this.sharedId = sharedId
}
}

Expand All @@ -180,8 +180,8 @@ class ReferenceValue {
toReturn[RemoteReferenceType.HANDLE] = this.handle
}

if (this.shareId != null) {
toReturn[RemoteReferenceType.SHARED_ID] = this.shareId
if (this.sharedId != null) {
toReturn[RemoteReferenceType.SHARED_ID] = this.sharedId
}

return toReturn
Expand Down

0 comments on commit 560b3de

Please sign in to comment.