Here will record the problems encountered in the work.
workspace's Introduction
workspace's People
workspace's Issues
v8 compile issue: Embedder-vs-V8 build configuration mismatch. On embedder side sandbox is DISABLED while on V8 side it's ENABLED.
add -DV8_ENABLE_SANDBOX
to your cmd.
[Symbol.for('nodejs.util.custom.inspect')] can hook your `console.log`
Recent use bson package which a npm package for Node.js, I find the result very strange when log the new ObjectId()
const { ObjectId } = require('bson');
console.log(new ObjectId());
then get this result:
new ObjectId(xxxxxxxxxx)
I find it use Node.js internal logic below:
class ObjectId {
[Symbol.for('nodejs.util.custom.inspect')]() {
// other logic
}
}
it can hook your console.log
:-)
xcode init LLDB and envs
构建 chromium,使用 clangd 在 vscode 中进行 intelliSense
V8 Local vs Handle
See: https://groups.google.com/g/v8-users/c/S7_hgrH3cEo/m/Ic1ijihPNQ4J
"Handle" is a historical artifact and will go away completely soon: There will be only v8::Local (normal implicitly handled references to JavaScript object) and v8::Global (explicitly handled persistent references, currently known as "UniquePersistent", but this name will go away, too).
All those handle-related changes in the external API are a bit unfortunate, but it simply took us some time to make the API correct and more or less fool-proof.
document load process tips
- link load css will block renderer and script download/scripting
- DOMContentLoaded will be called back after all script excuted including defer script(does not wait for resource to loaded)
- onload will wait for all resource to loaded
Useful shortcut keys
Key | Desc |
---|---|
cmd + 0 |
在 vscode 中可定位到当前文件的位置 |
gen V8 compile_commands.json for vscode on M1
.clangd configuration
CompileFlags:
Add:
[
-std=c++14,
-Wno-documentation,
-Wno-missing-prototypes
]
Diagnostics:
ClangTidy:
Add:
[
performance-*,
bugprone-*,
modernize-*,
clang-analyzer-*,
readability-identifier*,
]
CheckOptions:
readability-identifier-naming.VariableCase: camelCase
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.