Instantly share code, notes, and snippets.

View audit.js
mkdir sort-audit;
cd sort-audit;
npm init -y;
npm install glob;
View files.txt
This file has been truncated, but you can view the full file.
View cssunitvalue-is-not-easy-to-use-as-extension-handler.js
class CSSUnitValue {
constructor(value, unit) {
this.value = value;
this.unit = unit;
toString() {
// 4. Otherwise, if unit is "percentage", append "%" to s, then return s.
return `${this.value}${this.unit === "percent" ? "%" : ""}`;
View monotonicnow.cpp
JsValueRef __stdcall WScriptJsrt::MonotonicNowCallback(JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState)
JsValueRef returnValue = JS_INVALID_REFERENCE;
JsErrorCode errorCode = JsNoError;
using std::chrono::duration_cast;
using std::chrono::milliseconds;
View wake-in-order-standalone.js
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
esid: sec-atomics.wake
description: >
Test that Atomics.wake wakes agents in the order they are waiting.
features: [Atomics, SharedArrayBuffer, TypedArray]
View results.txt
$ test262-runner "test/language/expressions/**/tco*.js"
FAIL test/language/expressions/call/tco-call-args.js (strict mode)
Expected no error, got RangeError: Maximum call stack size exceeded
FAIL test/language/expressions/call/tco-member-args.js (strict mode)
Expected no error, got RangeError: Maximum call stack size exceeded
FAIL test/language/expressions/call/tco-non-eval-function-dynamic.js (default)
Expected no error, got RangeError: Maximum call stack size exceeded
View 0001-Enable-SharedArrayBuffer-for-Testing.patch
From 4aebb770e48493f9ca46ca708a6271c8b0ef3045 Mon Sep 17 00:00:00 2001
From: Rick Waldron <>
Date: Mon, 26 Feb 2018 12:33:54 -0500
Subject: [PATCH] Enable SharedArrayBuffer for Testing
Source/WTF/wtf/Platform.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
View Setting up Google Cloud Storage with CORS for Web


Google Cloud Storage

You'll want to login using an official Google account (i.e. if this is for your company, use the comapany Gmail account vs. a personal one.)

When logging in, you might be prompted to verify the account; if so, enter your cell number to get a verification e-mail or phone call.

Once verified, you'll have to agree to the terms of service; do that, and click continue.

View array-oob.js
Discovered in
var x = [];
var k = 1;
for (var i = 0; i < 32; i++) {
k = k * 2;
x[k - 2] = k;
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at