Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix set-constant scriptlet — Maximum call stack size exceeded #373

Closed
AdamWr opened this issue Oct 26, 2023 · 0 comments
Closed

Fix set-constant scriptlet — Maximum call stack size exceeded #373

AdamWr opened this issue Oct 26, 2023 · 0 comments

Comments

@AdamWr
Copy link
Member

AdamWr commented Oct 26, 2023

Steps to reproduce:

  1. Add this rule:
example.org#%#//scriptlet("set-constant", "foo.bar.test.abc", "noopFunc")
  1. Go to - https://example.org/
  2. Run in console:
window.foo = {};
foo = {};
adguard pushed a commit that referenced this issue Oct 30, 2023
…stant scriptlet. #373

Squashed commit of the following:

commit b4fb774
Merge: 751872d 0605d92
Author: Adam Wróblewski <adam@adguard.com>
Date:   Fri Oct 27 15:41:18 2023 +0200

    Merge branch 'master' into fix/AG-27143

commit 751872d
Author: Adam Wróblewski <adam@adguard.com>
Date:   Fri Oct 27 07:42:15 2023 +0200

    Update tests
    Remove global properties after tests

commit d1a58f9
Author: Adam Wróblewski <adam@adguard.com>
Date:   Thu Oct 26 21:28:05 2023 +0200

    Fix issue with setting values to wrong properties in set-constant scriptlet
@slavaleleka slavaleleka added the bug Something isn't working label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants