Skip to content

Commit

Permalink
Merge branch 'trunk' into add-enum-for-page-load-strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
M1troll authored Dec 7, 2023
2 parents 3836951 + 560b3de commit a68a3b2
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 a68a3b2

Please sign in to comment.