ripcordsoftware / libjsapi Goto Github PK
View Code? Open in Web Editor NEWA SpiderMonkey (Mozilla) JSAPI wrapper for C++ 11
License: MIT License
A SpiderMonkey (Mozilla) JSAPI wrapper for C++ 11
License: MIT License
Need to add DYLD_LIBRARY_PATH so it can locate libmozglue.dylib
DynamicObject should be enumerable from JS. The JSClass should implement the JSEnumerateOp and delegate to a client lambda.
libmozglue is a dylib on OSX, not a .a
file
Need a better understanding of how the SM GC is called and what the impact on libjsapi objects may be.
Most tests removed in transition to mozjs-50.
If Object is created with no setter callback then the properties should be marked as JSPROP_READONLY.
Specifically:
[ RUN ] MultiRuntimeTests.test1
tests/multi_runtime_tests.cpp:60: Failure
Expected: { rs::jsapi::Runtime rt; } throws an exception of type rs::jsapi::RuntimeThreadInstanceException.
Actual: it throws nothing.
[ FAILED ] MultiRuntimeTests.test1 (9 ms)
and:
[ RUN ] GCTests.test6
tests/gc_tests.cpp:179: Failure
Value of: deleted_
Actual: 0
Expected: 1
[ FAILED ] GCTests.test6 (2 ms)
Tests also exit with:
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
This may be a gtest issue.
Object is well supported - but array isn't
i try to use require in js,but it not work. could you please help me.
in fact, i exposed a c++ method for js require function to load js file. it also not work!
DynamicArray is not a true JS array - it just simulates the [ ] operator and and length property (JSAPI doesn't support arrays derived from a JSClass which means it isn't possible to implement custom getter/setter callbacks).
A static array class should be implemented for true array support.
Copy the implementation pattern from Object
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.