-
Notifications
You must be signed in to change notification settings - Fork 100
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
Requiring io
module should not polute the global scope
#459
Comments
Rewriting this will be fun. The initClass(scope, prototype, Type.ByteArray);
initClass(scope, prototype, Type.ByteString); I haven't found why these must be host objects of the engine. But I guess it's because there of CommonJS' Binary/B:
|
The
io
module introducesByteArray
andByteString
viadefineClass()
. This adds both to the engine's global host objects. This prevents usingconst
in the context of i/o.I don't see a chance to fix this anyway, but leave this as an issue to discuss for the future. Maybe we find a non-radical solution to this problem.
The text was updated successfully, but these errors were encountered: