This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
Forward native prototype extensions through require
#5
Labels
require
#5
If I try to evaluate a program that uses a library extending native prototypes, LightTable loses connection with the Node process, saying it crashed, and the console reads the following:
Indeed, it seems that the
sbRequire
function wraps originalrequire
calls without sharing prototypes, since all modules are evaluated in their own (shared) context, not in the global context.For reference, this behavior can be tested by trying to evaluate stuff in Watai’s
src/index.js
.The text was updated successfully, but these errors were encountered: