Comments (1)
中间碰到一个d8.cc的错误引导导致实现问题,记录下:
d8.cc生成fullfil回调的逻辑如下:
#ifndef CHECK
#define CHECK(condition) assert(condition)
#endif
//...other
Local<Function> callback_success;
CHECK(Function::New(realm, ModuleResolutionSuccessCallback, edata)
.ToLocal(&callback_success));
我照写是有问题的,因为assert在release版本直接整行都干没了,并不会执行中间的Function::New等语句,导致后续Then时空指针访问。
而d8.cc没问题是因为它在v8\src\base\logging.h另有CHECK的定义。
它这代码生效了崩溃,不生效废代码,但对参考它写代码却是错误的引导。
我先是怀疑编译参数、v8构建环境和plugin构建环境一致性的问题,排查后一行行代码替换最终找到问题所在。
from puerts.
Related Issues (20)
- [Unity]文件长度为0的module加载时报找不到模块
- [Unity]考虑将Plugin API简化
- [Unity] Bug: 使用backend v8异步加载并实例化wasm会一直挂起 HOT 2
- [UE] Bug: 基于模板的静态绑定,编译报错 C4668 HOT 3
- [Unity] Bug: upm 包的运行时库配置有误 HOT 3
- [Unity] Bug: Crash when trying to access transform or gameObject properties through a JS proxy HOT 4
- [Unity] Bug: Crash on LoadType HOT 3
- [Unity] Bug: WebGL 平台构建出错 HOT 2
- [Unity] 有没有出类似最佳实践的计划
- [Unity]v8 10.6在mac下运行报v8::base::OS::SetPermissions失败
- [Unity]v8的FunctionTemplate同key的属性导致的问题
- [Unity]鸿蒙出包注意事项
- [UE] Bug: 在PublicIncludePaths中引入Programs/UnrealHeaderTool/Public,编译时会产生大量警告 HOT 4
- [UE]ts定制的组件attach c++定义的组件报错 HOT 1
- [UE] Bug: TS定义一个的property组件找不到SetAnimClass()函数 HOT 5
- [UE] Bug: 生成的ue.d.ts会漏掉/Engine下的蓝图类
- [Unity] Bug: 发布微信小程序报错JsEnv has been disposed HOT 1
- [Unity]字符串中间含\0传递到js会被截断 HOT 3
- global object in javascrript HOT 1
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 puerts.