サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ブラックフライデー
whereswalden.com
Mozilla, politics, economics, law, backpacking, cycling, and other random desiderata ECMAScript object literals ECMAScript, the standard underlying the JavaScript language, can represent simple objects and arrays using literals. var arr = [1, 2, 3]; var obj = { property: "ohai" }; But it can’t represent all objects and arrays. Cyclic and non-tree objects ECMAScript literals can’t represent circula
Mozilla, politics, economics, law, backpacking, cycling, and other random desiderata tl;dr Ideally you shouldn’t use eval, because it inhibits many optimizations and makes code run slower. new Function(argname1, argname2, ..., code) doesn’t inhibit optimizations, so it’s a better way to dynamically generate code. (This may require passing in arguments instead of using names for local variables. Th
Mozilla, politics, economics, law, backpacking, cycling, and other random desiderata tl;dr Don’t try to use the arguments or caller properties of functions created in strict mode code. Don’t try to use the callee or caller properties of arguments objects corresponding to invocations of functions in strict mode code. Don’t try to use the caller property of a function if it might be called from stri
Mozilla, politics, economics, law, backpacking, cycling, and other random desiderata tl;dr We’ve removed support for a handful of obsolete getter/setter syntaxes in SpiderMonkey and Mozilla. This does not include { get property() { return "value"; }, set property(v) { } }, which is widely used and which is part of the latest standard. If you don’t get any syntax errors with your code, you don’t ne
このページを最初にブックマークしてみませんか?
『whereswalden.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く