var encodeURIComponent, Array_push, Number_toString;
(function() {
var iframe = document.createElement('iframe'), loaded = false;
iframe.style.width = '1px';
iframe.style.height = '1px';
iframe.style.position = 'absolute';
var onloadIframe = function() {
if (!loaded && iframe.contentWindow) {
loaded = true;
This file contains 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
;(async () => { | |
async function dumpDatabase(dbName) { | |
var dbExists = await new Promise(resolve => { | |
var request = window.indexedDB.open(dbName) | |
request.onupgradeneeded = e => { | |
e.target.transaction.abort() | |
resolve(false) | |
} | |
request.onerror = () => resolve(true) | |
request.onsuccess = () => resolve(true) |
This file contains 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
var B = require('b_'); | |
var Array_of = function (any) { | |
return Array.prototype.slice.call(any); | |
}; | |
B.with = function () { | |
var b = this, | |
curriedArgs = Array_of(arguments); | |
This file contains 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
/*! | |
* Copyright 2014 jQuery Foundation and other contributors | |
* Released under the MIT license. | |
*/ | |
/** | |
* Better Element.scrollIntoView() implementation | |
* | |
* @see https://github.com/jquery/jquery-ui/blob/master/ui/menu.js#L409-L425 | |
* |
This file contains 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
console.log($LINE$); | |
// LINE = lineNumber() |
This file contains 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
// Action signature should be descriptive so IDE could use it. | |
var actionSet = createActions({ | |
/** | |
* @param {object} data | |
* @param {string} data.name | |
* @param {string} data.value | |
*/ | |
a: function actionMiddleware(data) { | |
// Case validate data | |
if (validate(data)) { |
This file contains 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
// node --allow-natives-syntax index.js | |
var before, after, a; | |
before = %GetHeapUsage(); | |
a = {}; | |
after = %GetHeapUsage(); | |
console.log(after - before); |
Spec is moved to azproduction/spec
This file contains 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
/** | |
* | |
* @param {String} moduleName module name or path to file | |
*/ | |
function require(moduleName) {} | |
/** | |
* Matches in-package modules | |
* | |
* @param {RegExp} regExp |
This file contains 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 EventManager () { | |
this._events = {}; | |
} | |
EventManager.prototype = { | |
_event: function (type) { | |
var events = this._events[type]; | |
if (!events) { | |
events = this._events[type] = {}; |
NewerOlder