Skip to content

Instantly share code, notes, and snippets.

@polygonplanet
polygonplanet / getDefaultProxyHandler.js
Last active December 29, 2015 20:19
ECMAScript6 - Proxy - default handler
// Proxy default handler
//
// Proxy.Handler.prototype
// http://wiki.ecmascript.org/doku.php?id=harmony:proxy_defaulthandler
// http://wiki.ecmascript.org/doku.php?id=harmony:proxies
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
var getDefaultProxyHandler = function getDefaultProxyHandler() {
return {
// == fundamental traps ==
/**
* Format a date like YYYY-MM-DD.
*
* @param {string} template
* @param {Date=} [date]
* @return {string}
* @license MIT
*/
function formatDate(template, date) {
var specs = 'YYYY:MM:DD:HH:mm:ss'.split(':');
@polygonplanet
polygonplanet / heavyProcess-ir
Last active June 15, 2016 05:26
heavyProcess irhydra
B0
t1
Parameter 0 Tagged
v3
Prologue Tagged
v4
Goto B1 Tagged