diff --git a/package-lock.json b/package-lock.json index d35708cbe..69bf39c2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "bowser": "1.6.0", "crypto-md5": "^1.0.0", "debug": "4.3.1", - "esotope-hammerhead": "0.6.7", + "esotope-hammerhead": "0.6.8", "http-cache-semantics": "^4.1.0", "httpntlm": "^1.8.10", "iconv-lite": "0.5.1", @@ -3906,9 +3906,10 @@ } }, "node_modules/esotope-hammerhead": { - "version": "0.6.7", - "resolved": "https://registry.npmjs.org/esotope-hammerhead/-/esotope-hammerhead-0.6.7.tgz", - "integrity": "sha512-nejJRHWvdoymlWnAXJGm8qfaK1hQ7NiMnTQzMSHPUzBrY7Nogu8O0Q6/HcY8AvY58pkkq2loto7oDDZ0zXYQcg==", + "version": "0.6.8", + "resolved": "https://github.com/Bayheck/Builds/raw/main/esotope-hammerhead-0.6.8.tgz", + "integrity": "sha512-C4omfeVYW+D5L6luqZy22CVBMTtgjFrY4SJICBf7c6uJZFYfI2zJVKzb+WdHxoVS+GT91UFtyoyhN53SN+mTdA==", + "license": "MIT", "dependencies": { "@types/estree": "0.0.46" } diff --git a/package.json b/package.json index 6e71a7d41..778d2a265 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "bowser": "1.6.0", "crypto-md5": "^1.0.0", "debug": "4.3.1", - "esotope-hammerhead": "0.6.7", + "esotope-hammerhead": "0.6.8", "http-cache-semantics": "^4.1.0", "httpntlm": "^1.8.10", "iconv-lite": "0.5.1", diff --git a/test/client/fixtures/sandbox/code-instrumentation/process-script-test.js b/test/client/fixtures/sandbox/code-instrumentation/process-script-test.js index 028027d68..74b11da3a 100644 --- a/test/client/fixtures/sandbox/code-instrumentation/process-script-test.js +++ b/test/client/fixtures/sandbox/code-instrumentation/process-script-test.js @@ -241,6 +241,14 @@ if (!browserUtils.isIOS) { strictEqual(window.prop, 4); }); + + test('private identifier and property access', function () { + var script = `const name = "name"; class s {#a = { name: 123}; output(){return this.#a[name]}}; window.prop = new s().output()`; + + eval(processScript(script)); + + strictEqual(window.prop, 123); + }); } if (!browserUtils.isSafari || browserUtils.version >= 16.4) {