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
diff --git a/src/intrinsics/ArrayPrototype.mjs b/src/intrinsics/ArrayPrototype.mjs | |
index f6be4d6..c0f658f 100644 | |
--- a/src/intrinsics/ArrayPrototype.mjs | |
+++ b/src/intrinsics/ArrayPrototype.mjs | |
@@ -563,6 +563,7 @@ export function BootstrapArrayPrototype(realmRec) { | |
); | |
proto.DefineOwnProperty(wellKnownSymbols.iterator, proto.GetOwnProperty(new Value('values'))); | |
+ proto.DefineOwnProperty(wellKnownSymbols.slice, proto.GetOwnProperty(new Value('slice'))); | |
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
diff --git a/src/completion.mjs b/src/completion.mjs | |
index 96a909a..e56da42 100644 | |
--- a/src/completion.mjs | |
+++ b/src/completion.mjs | |
@@ -5,6 +5,8 @@ import { | |
PerformPromiseThen, | |
PromiseResolve, | |
SetFunctionLength, | |
+ ToBoolean, | |
+ Get, |
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
/********************************************************************* | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
For more information, please refer to <http://unlicense.org/> | |
*********************************************************************/ |
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 { createInterface, clearScreenDown } = require('readline'); | |
const { EventEmitter } = require('events'); | |
const { spawn } = require('child_process'); | |
const WebSocket = require('ws'); | |
const acorn = require('acorn-loose'); | |
const { isIdentifier, strEscape } = require('./src/util'); | |
const highlight = require('./src/highlight'); |
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 { EventEmitter } = require('events'); | |
const { spawn } = require('child_process'); | |
const WebSocket = require('ws'); | |
class Session extends EventEmitter { | |
constructor(url) { | |
super(); |
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
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) | |
if (POLICY CMP0075) | |
cmake_policy(SET CMP0075 NEW) | |
endif () | |
# The following must be set BEFORE doing project() or enable_language(). | |
if (NOT CMAKE_BUILD_TYPE) | |
message(STATUS "No build type defined; defaulting to 'Debug'") | |
set(CMAKE_BUILD_TYPE "Release" CACHE STRING |
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 path = require('path'); | |
let longestLine = ''; | |
const queue = ['./src']; | |
while (queue.length) { | |
const dir = queue.shift(); | |
const files = fs.readdirSync(dir, { withFileTypes: true }); | |
files.forEach((f) => { | |
const name = path.join(dir, f.name); |
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
new Promise((resolve, reject) => { | |
const timeout = setTimeout(() => { | |
clearInterval(interval); | |
reject(new Error('timed out')); | |
}, 5000); | |
const interval = setInterval(() => { | |
const x = doSomething(); | |
if (x !== undefined) { | |
clearInterval(interval); | |
clearTimeout(timeout); |
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 KEYS = 1; | |
const VALUES = 2; | |
const KEYS_VALUES = 3; | |
export default class WeakValueMap { | |
#map = new Map(); | |
#group = new FinalizationGroup((iterator) => { | |
for (const key of iterator) { | |
this.#map.delete(key); | |
} |
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 EventEmitter from 'events'; | |
import { | |
AsyncResource, | |
executionAsyncId, | |
createHook, | |
} from 'async_hooks'; | |
const zones = new Map(); | |
export default class Zone extends EventEmitter { |