Skip to content

Instantly share code, notes, and snippets.

View cmidgley's full-sized avatar

Chris cmidgley

  • Northborough, MA
View GitHub Profile
This file has been truncated, but you can view the full file.
{
editorVersion: '1.65.2',
pluginVersion: '1.0.334',
editorType: 'VSCode',
osVersion: 'linux 5.10.102.1-microsoft-standard-WSL2',
nodeVersion: 'v16.14.2',
coreVersion: '1.0.1253',
checksum: 'OTMyZDExYWM3ZDhkZjBkYWQ1Mjk5Y2I0ODExZWNlOWUsMTY3OTA5NzYwMDAwMCww',
config: {
diagnostics: {
@cmidgley
cmidgley / main.js
Created May 19, 2022 20:49
WeakMap crash with preload
import { MyClass } from './myclass';
const weak = new WeakMap();
weak.set(MyClass, {});
trace('Success\n');
@cmidgley
cmidgley / websocket.js
Created May 23, 2022 15:05
Refactored WebSocket with debug code
/*
* Copyright (c) 2016-2022 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK Runtime.
*
* The Moddable SDK Runtime is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@cmidgley
cmidgley / main.js
Created May 23, 2022 15:06
Simple websocket continuous send/receive test
/*
* Copyright (c) 2016-2019 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK.
*
* This work is licensed under the
* Creative Commons Attribution 4.0 International License.
* To view a copy of this license, visit
* <http://creativecommons.org/licenses/by/4.0>.
* or send a letter to Creative Commons, PO Box 1866,