You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the edge runtime calling Object.toString() (Function.toString.call(Object) is equivalent, see additional context) returns an anonymous function function () { [native code] }.
In both browser and node runtimes, using Function.toString.call(Object) returns function Object() { [native code] }. I have a feeling like it should work in a edge runtime as well 🤔
Possible solution
I nailed it down to this proxy and similarly for jest.setup.ts however, I couldn't figure out a solution for it 😞
Additional context/screenshots
For background context, I found this using the airtable lib, which was using lodash's isPlainObject function, specifically this line: https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L12046 (directly objectCtorString). I've been debating whether that is unreliable to use on lodash's library or something broken by the runtime. I have a feeling like this is something the runtime should fix since it works as expected on node/browser runtimes but let me know otherwise.
The text was updated successfully, but these errors were encountered:
Bug Report
Current behavior
Within the edge runtime calling
Object.toString()
(Function.toString.call(Object)
is equivalent, see additional context) returns an anonymous functionfunction () { [native code] }
.You can reproduce this behavior here:
Returns:
Expected behavior/code
In both browser and node runtimes, using
Function.toString.call(Object)
returnsfunction Object() { [native code] }
. I have a feeling like it should work in a edge runtime as well 🤔Possible solution
I nailed it down to this proxy and similarly for
jest.setup.ts
however, I couldn't figure out a solution for it 😞Additional context/screenshots
For background context, I found this using the
airtable
lib, which was usinglodash
'sisPlainObject
function, specifically this line: https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L12046 (directlyobjectCtorString
). I've been debating whether that is unreliable to use on lodash's library or something broken by the runtime. I have a feeling like this is something the runtime should fix since it works as expected onnode
/browser runtimes but let me know otherwise.The text was updated successfully, but these errors were encountered: