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

Function.prototype.apply was called on Object.prototype.propertyIsEnumerable, which is a string and not a function #20

Closed
huadong opened this issue Dec 29, 2020 · 4 comments

Comments

@huadong
Copy link

huadong commented Dec 29, 2020

image

image

image

@ljharb
Copy link
Member

ljharb commented Dec 29, 2020

Can you elaborate? callBound calls GetIntrinsic with the string and results in a function.

Which browser is this? Do you have a stack trace? What's using object.values?

@ljharb ljharb transferred this issue from es-shims/Object.entries Dec 29, 2020
@huadong
Copy link
Author

huadong commented Dec 30, 2020

Can you elaborate? callBound calls GetIntrinsic with the string and results in a function.

Which browser is this? Do you have a stack trace? What's using object.values?

It's WeChat mini-program(https://developers.weixin.qq.com/miniprogram/en/dev/framework/quickstart/#About-Mini-Programs) JS enviroment. This is the debug screenshot:

image

@ljharb
Copy link
Member

ljharb commented Dec 30, 2020

I believe this is caused by ljharb/get-intrinsic#5 - namely, the WeChat Miniprogram environment is not a standard JavaScript environment - in other words, it violates the EcmaScript specs.

I'm going to close this in favor of that one, but I'm not sure there's a reasonable solution that doesn't involve WeChat fixing its unnecessary getter conversion of built-in data properties.

@ljharb ljharb closed this as completed Dec 30, 2020
@huadong
Copy link
Author

huadong commented Dec 30, 2020

I believe this is caused by ljharb/get-intrinsic#5 - namely, the WeChat Miniprogram environment is not a standard JavaScript environment - in other words, it violates the EcmaScript specs.

Got it.
image

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

2 participants