Comments (2)
You could use the Aether transpiler for this. We use it in CodeCombat to expose only certain API properties of cloned objects and then restore the clones once user code is done running. Some of the relevant bits are here. I could show you more if you're interested.
Aether is a bit huge, though, and for it to really be secure, you want to run its stuff in a web worker.
from elevatorsaga.
Aha, thanks! Looks interesting, but like you say also looks huge. I'm not concerned about actual code/data safety, just want to prevent the user from having a bad experience after logging the floor object and discovering a whole bunch of properties that are not relevant to the solution.
from elevatorsaga.
Related Issues (20)
- Add a restart button while running elevator HOT 2
- On MS Edge, clicking "Next Challenge" doesn't do anything HOT 2
- Doesn't work on Chromium HOT 1
- Provide a "playground" mode where you can try out for debugging purpose
- Elevator moves while passengers enter the elevator
- Can't select code on Android Chrome
- Allow importing libraries?
- how are we supposed to know how many elevators we have access to? HOT 3
- How to update world (floors,elevators count) without changing challenge?
- Passengers not rehitting button
- Only last configured elevator behaves HOT 2
- Is this repo will be maintend HOT 4
- New levels based on real life
- I don't get this error HOT 2
- Turn off the code auto-formatter HOT 1
- Sharing Website doesn't load a preview-image
- Bug: User doesn't enter the elevator when it stops enroute HOT 1
- TypeScript for the API HOT 2
- Specify which passenger waited too long. HOT 4
- goingUp and goingDown indicators are always true HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elevatorsaga.