ところでIRB, iPython 使ったことありますか? V8のDeveloper Toolsのコンソールは, そのone lineでJSとしてvalid出なければならない. たとえばfunction AngelBeats() { console.log("天使ちゃんマジ天使"); } と書ききらなければいけない. これを function AngelBeats(){ console.log("天使ちゃんマジ天使"); } と3行に分けて書きたい.
ECMAScript 5: The Definitive Slides David Flanagan http://davidflanagan.com david@davidflanagan.com Overview of ES5 Useful new APIs Mostly things that can already be done in ES3 Property and object attributes getters and setters, constants, non-enumerable methods, sealed and frozen objects partially implemented in latest Firefox and Chrome alphas. Strict semantics opt-in strict mode; not backward-
ES5 の予約語は以下の4種類 Keyword FutureReservedWord NullLiteral null BooleanLiteral false true Keyword 以下のトークンは、Identifiers には使用できません。 debugger は ES5 で FutureReservedWord から Keyword に昇格しました。 break do instanceof typeof case else new var catch finally return void continue for switch while debugger function this with default if throw delete in try debugger はステートメントになりました。 // DebuggerStatement : See 12.15 debu
Previously I analyzed ECMAScript 5’s Object and Property system. This is a huge new aspect of the language and deserved its special consideration. There are a number of other new features and APIs that need attention, as well. The largest of which are Strict Mode and native JSON support. Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” o
ECMAScript-262 5th で新しく追加された関数/メソッドの対応状況を調べてみました。 Ch3: Google Chrome3.0.195.38(stable) Ch4: Google Chrome4.0.266.0(dev) Fx3.5: Firefox3.5.3 Fx3.6: Firefox3.6β5 Op10.10: Opera10.10 Op10.50: Opera10.50α Sa3: Safari3.2.3(windows) Sa4: Safari4.0.4(windows) iSa4: iPhone iOS 3.1(WebKit 528.18) uupaa: uupaa.js 0.7 こちらもあわせてご覧ください http://kangax.github.com/es5-compat-table/#showold Browser(Library) Ch3 Ch4
Author: Mark S. Miller, Waldemar Horwat, Mike Samuel View presentation on YouTube. Download slides (OpenOffice) (PowerPoint) (PDF)
ざっと、5th Editionのドラフトを眺めてみて、3rd Editionの仕様の不備と思っていた部分が改善されているかどうかを調べてみた。以下、v3は3rd Edition、v5は5th Editionのこと。 for in文のinの右のパラメータがnullの場合 Annexにもちゃんと記述されているが、v3では for (var i in null) のようにinの右のパラメータに対してToObject()が実行されるため、それがnullの場合にはTypeError例外が発生する仕様になっていた。実際のブラウザのJavaScript実装ではそのような例外が発生することはなく、for本体が実行されない動作になっている。v5ではToObject()を実行する前に、それがnullかundefinedであるかをチェックする記述が追加されている。 文のない関数本体 v3では文のない関数本体の扱
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く