Skip to content

[In English] Functional Thursday #37 - JS Engine hacking: Catch a SpiderMonkey

Photo of Geoffr Su
Hosted By
Geoffr S. and 4 others
[In English] Functional Thursday #37 - JS Engine hacking: Catch a SpiderMonkey

Details

[19:30 ~ 19:45] 自由交流

[19:45 ~ 20:30] Catch a SpiderMonkey (抓一隻蜘蛛猴)

I would like to share the experience I've learned so far about diagnosing and debugging the JavaScript/ECMAScript engine of Firefox. I would like to demo how to start the patching project, and the general method I used to trace a bug. In the end, we should be able to add a customised built-in function in the engine.

And since I would like to help you to accomplish the goal step-by-step, please follow this MDN document to clone and build the engine first:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation

If you're a Git user you can consider to use git-cinnabar to clone the repo:

https://github.com/glandium/git-cinnabar

Note: the repo is about 15GB after cloning. So please clone it when you have a high-speed network and preserve enough disk space for it. I recommend at least 30GB for the disk space.

If you have any trouble when building the environment, contact me in the reply. And I would have some presentation and live-demo, so it's okay to come without the engine built.

----

當天預計與各位分享到目前為止我如何在 Firefox 的 JavaScript/ECMAScript engine SpiderMonkey 中除錯。

如果可以,請先建置好環境:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation

如果你是 git 的使用者,可以使用 git-cinnabar 去下載 repo

https://github.com/glandium/git-cinnabar

提醒:目前整個 repo 下載完可能有 15GB 大小。請斟酌網路環境與可用磁碟空間下載。我建議至少要有 30GB 的磁碟空間。

如果建置環境的過程中有問題請回覆我。當天我會有簡報跟現場示範,所以如果真的有問題無法解決也沒有關係。

----

• [20:30 ~ ] lightning talk & 自由交流

也歡迎大家來

https://funth.hackpad.com/Functional-Thursday-Topics-sGic3s4ncNn

填填看想投稿/想要聽的主題唷!

Photo of Functional Thursday group
Functional Thursday
See more events
Mozilla Space
台北市信義區信義路五段 106 號 4 樓 A-1 · Taipei