Skip to content
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

Allow isolates to be spawned with separate environment constants #23799

Closed
nex3 opened this issue Jul 7, 2015 · 2 comments
Closed

Allow isolates to be spawned with separate environment constants #23799

nex3 opened this issue Jul 7, 2015 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-isolate type-enhancement A request for a change that isn't a bug type-security

Comments

@nex3
Copy link
Member

nex3 commented Jul 7, 2015

When spawning an isolate, it would be useful to control what environment constants are available within that isolate. This would be nice for things like pub run or the test package runner, where the user may specify environment constants on the command line. It can also be looked at as a security feature; if an isolate is used to run untrusted code, the caller may not want the isolate to have access to its environment constants, which may contain secret information.

@nex3 nex3 added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. type-security library-isolate labels Jul 7, 2015
@seaneagan
Copy link

Another use case related to pub run here:

dart-lang/pub#1234

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
@bkonyi
Copy link
Contributor

bkonyi commented Jun 18, 2018

I think this is handled by Isolate.spawnUri's environment parameter. Closing for now, but please reopen if this isn't resolved.

@bkonyi bkonyi closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-isolate type-enhancement A request for a change that isn't a bug type-security
Projects
None yet
Development

No branches or pull requests

4 participants