From 560b3de1a94715ef37b8081bd1d2f64838c7f250 Mon Sep 17 00:00:00 2001 From: Puja Jagani Date: Thu, 7 Dec 2023 15:24:46 +0530 Subject: [PATCH] [js] Fix typo --- .../node/selenium-webdriver/bidi/protocolValue.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/javascript/node/selenium-webdriver/bidi/protocolValue.js b/javascript/node/selenium-webdriver/bidi/protocolValue.js index aff75d3587907..8f3e905560686 100644 --- a/javascript/node/selenium-webdriver/bidi/protocolValue.js +++ b/javascript/node/selenium-webdriver/bidi/protocolValue.js @@ -25,7 +25,7 @@ const TYPE_CONSTANT = 'type' const VALUE_CONSTANT = 'value' const RemoteReferenceType = { HANDLE: 'handle', - SHARED_ID: 'shareId', + SHARED_ID: 'sharedId', } class LocalValue { @@ -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 } } @@ -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