Test["toHex"] = Test_toHex; // Test#toHex(a:TypedArray|Array, fixedDigits:Integer = 0):NumberStringArray
Test["likeArray"] = Test_likeArray; // Test#likeArray(a:TypedArray|Array, b:TypedArray|Array, fixedDigits:Integer = 0):Boolean
Test["likeObject"] = Test_likeObject; // Test#likeObject(a:Object, b:Object):Boolean
function Test_toHex(a, // @arg TypedArray|Array
fixedDigits) { // @arg Integer = 0 - floatingNumber.toFixed(fixedDigits)
// @arg NumberStringArray - ["00", "01"] (Uint8Array)
// ["0000", "0001", ...] (Uint16Array)homebrew を使い、 node, npm と iojs の最新をインストールし、利用できるようにしてみましょう。
$ brew install node // 一緒に npm もインストールされます
$ node --version
> v0.12.2
$ npm --version
> 2.10.0MAC と Bluetooth でペアリングし、ブラウザから keyCode, mouse.button を取った場合のキーアサイン。
- L, R, SELECT, START, X, Y が MouseEvent.button = 1 になってしまうため判別できない
- Up, Down, Left, Right, A, B は判別可能。Bボタンを取るためには、コンテキストメニューを禁止する必要がある
+---+-----------------------------------+---+
+ m1 +--+ +--+ m1 +
| |Up| |m1| |
| +--+ +--+ +--+ +--+ |
- resources
- new keywords(but not ensure)
- new Map
- new Proxy
- new Promise
- new Set
- new Symbol
- new WeakMap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(global) { | |
| "use strict"; | |
| // --- dependency modules ---------------------------------- | |
| var Hash = global["Hash"]; | |
| // --- define / local variables ---------------------------- | |
| //var _isNodeOrNodeWebKit = !!global.global; | |
| //var _runOnNodeWebKit = _isNodeOrNodeWebKit && /native/.test(setTimeout); | |
| //var _runOnNode = _isNodeOrNodeWebKit && !/native/.test(setTimeout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // function declaration | |
| (function(global) { | |
| "use strict"; | |
| function Aaa1(value) { | |
| this._value = value || ""; | |
| } | |
| Aaa1.prototype = Object.create(Aaa1, { | |
| constructor: { value: Aaa1 }, |
in Chrome
var a = { a: 1 };
var map = new WeakMap();
Object.freeze(map);
Object.isFrozen(map); // -> true
map.set(a, "123");-
requestAnimationFrame()
-
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp?rev=131214#L5544
int Document::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback) { return m_scriptedAnimationController->registerCallback(callback); }
-
-
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/ScriptedAnimationController.cpp#L104
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //{@spec_storage | |
| (function(global) { | |
| "use strict"; | |
| // --- dependency modules ---------------------------------- | |
| // --- define / local variables ---------------------------- | |
| //var _isNodeOrNodeWebKit = !!global.global; | |
| //var _runOnNodeWebKit = _isNodeOrNodeWebKit && /native/.test(setTimeout); | |
| //var _runOnNode = _isNodeOrNodeWebKit && !/native/.test(setTimeout); | |
| //var _runOnWorker = !_isNodeOrNodeWebKit && "WorkerLocation" in global; |