Mac に Homebrew で SpiderMonkey をインストールしました。 $ brew install spidermonkey これで js コマンドでコンソールからJavaScript(SpiderMonkeyエンジンのもの)を実行することができます。 $ js js> print('お腹すいた' + '、と思ったか?'); お腹すいた、と思ったか? js> js> quit(); $ SpiderMonkey について知りたい方はこの辺を読んでください。 ・SpiderMonkey (JavaScript-C) Engine 以上です。
788293 – Remove E4X from Spidermonkey mozilla-central: changeset 120561:c929583ba8ae 現NightlyのFirefox 21.0a1で──というよりSpiderMonkeyから──E4Xが削除された。 (当然だけど)Firefoxからも、javascript.options.xml.chromeやjavascript.options.xml.contentで有効/無効にできたものが、このオプション自体がなくなっている ぽく、ぽく、ぽく、ちーん... 参考 「e4x」の検索結果一覧 - hogehoge
This blog focuses on portions of the new-in-ES6 stuff I presented in my Strange Loop 2012 closing keynote, which was well-received (reveal.js-based HTML slides, some from my Fluent 2012 keynote, many of those originally from Dave Herman‘s Web Rebels 2012 talk [thanks!], can be viewed here; notes courtesy Jason Rudolph). UPDATE: the Strange Loop keynote video is up. I blogged early in 2011 about Ha
One thing I’ve learnt while working for Mozilla is that a web browser can be characterized as a JavaScript execution environment that happens to have some multimedia capabilities. In particular, if you look at Firefox’s about:memory page, the JS engine is very often the component responsible for consuming the most memory. Consider the following snapshot from about:memory of the memory used by a s
This document discusses adding a V8 API to SpiderMonkey, Mozilla's JavaScript engine. It aims to give SpiderMonkey a better C++ API like V8's and support evolving JavaScript features. Key points discussed include giving SpiderMonkey a "C++ the good parts" API like V8, supporting upcoming ES.next features like let/const, and exploring proposals for Harmony like arrow functions and classes. Examples
SpiderMonkey の escape() は第二引数にビットフラグを受け取る。 Amazon の API 用にこんな関数を書いてて気付いた。 function amazEnc(str) encodeURIComponent(str).replace(/[!\'()]+/g, escape).replace(/[*]/g, '%2A'); amazEnc('unescape(_)') //=> Error: invalid string escape mask 8 この 8 は replace() が escape() に渡したマッチ位置。 該当ソースコードを見てみる。 /* * Contributions from the String class to the set of methods defined for the * global object. escape and un
SpiderMonkey とは SpiderMonkey とは Firefox にも搭載されていいる JavaScript エンジンで、 インストールすると js コマンドを使えるようになって、 コンソールでいろいろ js を試せるようになります。 こんな感じ ~ $ js js> (function fib(n) { return n < 3 ? 1 : fib(n - 1) + fib(n - 2) })(10) 55 js> for (var n in function() { return this } ()) print(n) n js> quit() ~ $ で、 今までずっと mozilla の cvs で取ってきてビルドしてたんです でも、MacPorts が入っていれば ~ $ sudo port install spidermonkeyでインストールできるみたいです。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く