Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 22:00 (UTC -07:00)
View GitHub Profile
#!/usr/env/bin python3
import signal
import sys
import dbus
from gi.repository import GLib, GObject
from dbus.mainloop.glib import DBusGMainLoop
import soundcard
'use strict';
const { User } = require('./models');
/* eslint-disable no-console, no-await-in-loop */
async function main() {
for (const email of process.argv.slice(2)) {
const user = await User.getByEmail(email);
if (!user) {
console.error(email + ' is not a registered email. :(');
From adafabcd57702bd2a73207962f81bdc94d5278de Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 25 Sep 2018 00:01:16 -0700
Subject: [PATCH] for-in loop
engine262/src/runtime-semantics/ForStatement.mjs
149:7 error 'BindingInstantiation_ForDeclaration' is not defined no-undef
169:18 error 'DestructuringAssignmentEvaluation_AssignmentPattern' is not defined no-undef
---
src/ast.mjs | 45 ++++-
diff --git a/src/completion.mjs b/src/completion.mjs
index 6a89ce4..dffb911 100644
--- a/src/completion.mjs
+++ b/src/completion.mjs
@@ -5,10 +5,10 @@ import {
import { New as NewValue } from './value.mjs';
// #sec-completion-record-specification-type
-export class Completion {
+class Completion {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/url.bs b/url.bs
index 6cb0f04..e49aa29 100644
--- a/url.bs
+++ b/url.bs
@@ -940,6 +940,138 @@ <h2 id=urls>URLs</h2>
for=/>URL</a> that was <a lt="URL serializer">serialized</a>.)
</ul>
+<div class=example>
+ <table>

Keybase proof

I hereby claim:

  • I am TimothyGu on github.
  • I am timothygu (https://keybase.io/timothygu) on keybase.
  • I have a public key whose fingerprint is 9456 AFC0 814A 8139 E994 8351 7FE6 B095 B582 B0D4

To claim this, I am signing this object:

@TimothyGu
TimothyGu / index.js
Created July 11, 2018 20:19
Firefox #1475000
"use strict";
const http = require("http");
const server = http.createServer((req, res) => {
if (req.url.includes("slow.js")) {
setTimeout(() => {
res.setHeader("Content-Type", "text/javascript");
res.end("void 0;");
}, 5000);
"g"
>>> {"id":16,"method":"Runtime.evaluate","params":{"expression":"this","objectGroup":"completion","includeCommandLineAPI":true,"silent":true,"contextId":1,"returnByValue":false,"generatePreview":false,"userGesture":false,"awaitPromise":false,"throwOnSideEffect":false}}
<<< {"id":16,"result":{"result":{"type":"object","className":"global","description":"global","objectId":"{\"injectedScriptId\":1,\"id\":9}"}}}
>>> {"id":17,"method":"Runtime.evaluate","params":{"expression":"g","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":17,"result":{"result":{"type":"object","subtype":"error","className":"ReferenceError","description":"ReferenceError: g is not defined\n at <anonymous>:1:1","objectId":"{\"injectedScriptId\":1,\"id\":10}"},"exceptionDetails":{"exceptionId":4,"text":"Uncaught","lineNumber":0,"columnNumber":0,"scriptId":"88","stackTrace":{"callFrames":[{"functionName":"","scriptId":"88","url":"
diff --git a/lib/internal/vm/Module.js b/lib/internal/vm/Module.js
index c7f90a83a3..806c7ae20f 100644
--- a/lib/internal/vm/Module.js
+++ b/lib/internal/vm/Module.js
@@ -32,6 +32,7 @@ const perContextModuleId = new WeakMap();
const wrapMap = new WeakMap();
const dependencyCacheMap = new WeakMap();
const linkingStatusMap = new WeakMap();
+const linkingStatusDeferredMap = new WeakMap();