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
{ | |
"type": "object", | |
"title": "Node.js Policy Manifest", | |
"description": "https://nodejs.org/api/policy.html", | |
"definitions": { | |
"cascade": { | |
"defaultSnippets": [ | |
{ | |
"label": "Allow scope fall through.", | |
"body": true |
This file has been truncated, but you can view the full file.
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
http://0-chromosome.hatenablog.jp/ | |
http://0.lifecell.com.ua/ | |
http://002tousan.seesaa.net/ | |
http://00monochrome.blog32.fc2.com/ | |
http://00room.blog.fc2.com/ | |
http://0301244.hatenablog.com/ | |
http://0316shank.hatenablog.com/ | |
http://03310711.blog59.fc2.com/ | |
http://04-09.gaidline.media/ |
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 readOnlyViews = new WeakMap(); | |
function ReadOnlyProxy(target) { | |
if (!canBeAProxyTarget(target)) return target; | |
if (readOnlyViews.has(target)) return readOnlyViews.get(target); | |
/** | |
* @type {()=>never} | |
*/ | |
function fail() { | |
throw new Error('cannot mutate a read only view'); |
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
import inspector from "inspector"; | |
const url2scriptid = new Map<string, string>(); | |
const session = new inspector.Session(); | |
session.connect(); | |
setupDebugger(); | |
function setupDebugger() { |
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 loop = Machine({ | |
context: { x: 3 }, | |
initial: 'while (x > 0)', | |
states: { | |
"while (x > 0)": { | |
on: { | |
EVAL: [ | |
{ | |
target: "x--", | |
cond(ctx, evt) { |
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 workflow = Machine({ | |
id: "workflow", | |
initial: "running", | |
states: { | |
running: { | |
id: "file", | |
type: "parallel", | |
states: { | |
upload: { | |
initial: "idle", |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 function doSomething() { | |
await timeout(2000); | |
} | |
function timeout(ms) { | |
return new Promise((res,rej) => setTimeout(rej,ms)); | |
} | |
Promise.race([ | |
doSomething(), | |
timeout(1000) |
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
--- Raw source --- | |
(thisArg, ...args) => { | |
return apply(fn, thisArg, args); | |
}; | |
--- Optimized code --- | |
optimization_id = 0 | |
source_position = 98 | |
kind = OPTIMIZED_FUNCTION | |
name = cached |
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
--- Raw source --- | |
(thisArg, ...args) => ReflectApply(func, thisArg, args); | |
--- Optimized code --- | |
optimization_id = 0 | |
source_position = 1082 | |
kind = OPTIMIZED_FUNCTION | |
stack_slots = 7 | |
compiler = turbofan | |
address = 0x7ffeefbfea68 |