-
Notifications
You must be signed in to change notification settings - Fork 80
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 ({}).constructor===Object #1047
base: main
Are you sure you want to change the base?
Conversation
this resolves #899 with a caveat that an object that was created outside of the VM will obviously won't satisfy this requirement. However, it will still be `instaceof Object` which is interesting. I am not sure it'll be easy to solve.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@@ -12,7 +12,7 @@ test('Error maintains a stack trace', async () => { | |||
vm.evaluate(`(${fn})()`) | |||
|
|||
expect(log).toHaveBeenCalledTimes(1) | |||
expect(log.mock.lastCall[0]).toMatch(/^Error: hello, world!\s+at fn/m) | |||
expect(log.mock.lastCall[0]).toMatch(/^Error: hello, world!\s+at Object/m) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is my main concern 👀
this resolves #899 with a caveat that an object that was created outside
of the VM will obviously won't satisfy this requirement. However, it will
still be
instaceof Object
which is interesting. I am not sure it'll be easy to solve.