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

Assigning to constructor at runtime #228

Open
golobitch opened this issue Sep 17, 2023 · 0 comments
Open

Assigning to constructor at runtime #228

golobitch opened this issue Sep 17, 2023 · 0 comments

Comments

@golobitch
Copy link

Decimal.js is not working with Secure ECMAScript (SES) due to assigning value to constructor at runtime. Constructor must be read-only. This by definition from SES is security concern.

This issue occurs at least here:

Decimal.prototype.constructor = Decimal;

I haven't had time to check for other issues.

I got following error while trying to run this under SES: (TypeError#1) TypeError#1: Cannot assign to read only property 'constructor' of object '[object Object]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant