Comments (4)
The limitation is due to QuickJS internally having only a uint_16 for "magic" on each function we create. I recently merged an improvement to this, but I didn't release it: #94
from quickjs-emscripten.
With #94 released, you'll have a limit of 65535 functions. Beyond that you'll need to do indirection in user-space. Meaning, if you've created 65534 functions (limit - 1), you should create a function that takes a function ID as a JS Number value, and maps that to a host function by reading the number.
from quickjs-emscripten.
Thank you for reply.
I also got that idea and implemented it in quickjs-emscripten-sync.
reearth/quickjs-emscripten-sync#21
It calls newFunction only once and it saves all funcImpl to the map with a number. I will try it and confirm if it works in our environment.
from quickjs-emscripten.
Sounds good 😄
from quickjs-emscripten.
Related Issues (20)
- How does WebAssembly play a role in this project? HOT 2
- Execute exported function? HOT 6
- utility functions to convert plain object/array to vm.newObject or vm.newArray? HOT 2
- ASYNCIFY_STACK_SIZE seems a little low HOT 1
- Is there a way to limit the standard library/built-in functions? HOT 4
- Can we get a more stripped down npm package? HOT 8
- Resolving a promise with an object creates undisposable references HOT 4
- Evaluating a module (any code that uses import) always returns undefined HOT 6
- Module "fs", "path", and "crypto" have been externalized for browser compatibility HOT 2
- Tests fail on s390x machines HOT 5
- Proxy log receiver blocking error HOT 1
- Async Regression "TypeError: Object not disposable" in v0.26.0 HOT 4
- wish to add a new api (QuickJSHandle.keepAlive) HOT 2
- evalCodeAsync running in module mode throws `proxy: cannot set property` error HOT 1
- Feature Request: Interrupt handler (or equivalent) for contexts (not just runtimes) HOT 5
- Latest release does not include browser fix HOT 1
- Question: how to inject setInterval? HOT 4
- Bundle size too big because of debug HOT 3
- Getting it to run on Cloudflare Workers HOT 7
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 quickjs-emscripten.