Comments (1)
This seems to fix the issue
func runJavascript(script string) string {
val, err := ctx.RunScript(script, "test.js")
defer val.Release() // <= release the value
if err != nil {
slog.Error("error", "val", val, "err", err)
}
return val.String()
}
from v8go.
Related Issues (20)
- How to properly build go binary that uses v8go inside docker?
- Using profiles to track allocation and release of objects
- undefined symbol: __libc_single_threaded HOT 1
- [Bug] Promise stays in infinite "pending" state HOT 1
- unable to add toString method to object
- SetAccesor method?
- v0.9.0 not work on x86_64 linux
- Upgrade v8 action not finding runners (deprecated ubuntu-18.04) HOT 1
- Isolate dispose cause the memory leak
- signal: bus error on Mac
- Building on Windows
- Exactly what kinds of access to v8go must be serialized from the caller
- Using MarshallJSON() on objects yields strange results
- Question: How to transfer large objects between go and v8 with high performance?
- how about SetPrototype
- I am using the Linux operating system with ARM64 CPU architecture, and I am encountering compilation errors.
- working really well. but...
- Multiple context managed by a load balancing technique
- export is not defined
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 v8go.