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
I'm in the process of reorganizing the kernel state, and moved the kernel state out of kernel.js and into another file under another sub-directory. This included state related functions, like dump and getState and loadState. To create the kernel obj in kernel.js, I just changed the properties of the kernel obj, such as dump: kernelState.dump, where kernelState.dump is an import from the other file.
I was getting an error: (node:82523) UnhandledPromiseRejectionWarning: TypeError: prototype function () { [native code] } of unknown.dump is not already in the fringeSet
I asked Mark about it and he suggested trying
dump() {
return kernelState.dump();
},
And that worked. Mark says this is a symptom of having multiple realms. Also, the prototype of dump was not Function.prototype and had an arguments property that Function.prototype didn't have.
The text was updated successfully, but these errors were encountered:
I'm in the process of reorganizing the kernel state, and moved the kernel state out of kernel.js and into another file under another sub-directory. This included state related functions, like
dump
andgetState
andloadState
. To create the kernel obj in kernel.js, I just changed the properties of the kernel obj, such asdump: kernelState.dump
, wherekernelState.dump
is an import from the other file.I was getting an error:
(node:82523) UnhandledPromiseRejectionWarning: TypeError: prototype function () { [native code] } of unknown.dump is not already in the fringeSet
I asked Mark about it and he suggested trying
And that worked. Mark says this is a symptom of having multiple realms. Also, the prototype of
dump
was notFunction.prototype
and had anarguments
property thatFunction.prototype
didn't have.The text was updated successfully, but these errors were encountered: