move to https://github.com/hax/js-class-fields-chinese-discussion/tree/master/meetings/20190908
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
void function () { | |
if (!window.tracker) { | |
return; | |
} | |
var events = ['scroll', 'click', 'mousemove', 'keydown', 'mousedown']; | |
for (var i = 0; i < events.length; i++) { | |
addHandler(document, events[i], detect); | |
} | |
function detect(event) { | |
for (var i = 0; i < events.length; i++) { |
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
void function () { | |
'use strict' | |
const targetSymbol = Symbol() | |
function createSafeMethod(method) { | |
return new Proxy(method, { | |
apply(target, thisArg, argArray) { | |
return Reflect.apply(target, thisArg[targetSymbol], argArray) | |
} |
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
// See https://github.com/nodejs/node/issues/6456 | |
import {platform} from 'os' | |
import {satisfies} from 'semver' | |
if (platform() === 'darwin' && satisfies(process.version, '>=6.0.0 <6.2.1')) { | |
for (const s of [process.stdout, process.stderr]) { | |
if (s && s.isTTY && s._handle && typeof s._handle.setBlocking === 'function') { | |
s._handle.setBlocking(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
const {main} = require('./main') | |
main() |
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 nakedObject() { | |
var iframe = document.createElement('iframe') | |
iframe.width = iframe.height = 0 | |
iframe.style.display = 'none' | |
document.appendChild(iframe) | |
iframe.src = 'javascript:' | |
var proto = iframe.contentWindow.Object.prototype | |
iframe.parentNode.removeChild(iframe) | |
iframe = null | |
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
'use strict' | |
const Benchmark = require('benchmark') | |
function MASK() { | |
return 100 | |
} | |
function MAX() { |
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
D:\working\hax\mmclass [master]> modulelint -i . | |
C:\Users\Administrator\AppData\Roaming\npm\node_modules\modulelint\lib\checklist | |
\bom.js:22 | |
var blackListReg = new RegExp(blackList.join("|")); | |
^ | |
SyntaxError: Invalid regular expression: /\doc\|\.git\|\.svn\|\node_modules\/: \ | |
at end of pattern | |
at new RegExp (unknown source) | |
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modul |
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
javascript:void function(){STK.sizzle('[node-type="feedGroupLayer"]')[0].style.display='block';STK.sizzle('[node-type="feedGroupLayer"] a[href]')[0].focus()}() |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
// See https://github.com/promises-aplus/promises-spec/issues/179 |