Extend from the ChainingExpression
approach.
extend interface Chain <: Node {
eventual: boolean
#!/bin/sh | |
# @babel/standalone 7.7.1 | |
wget -qO- https://unpkg.com/@babel/[email protected]/babel.js | grep -Ec "^function \_interopRequireDefault\(obj\)" | |
# @babel/standalone develop | |
cat packages/babel-standalone/babel.js | grep -Ec "^function \_interopRequireDefault\(obj\)" | |
# @babel/preset-env-standalone 7.7.1 | |
wget -qO- https://unpkg.com/@babel/[email protected]/babel-preset-env.js | grep -Ec "^function \_interopRequireDefault\(obj\)" |
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.default = normalizeFile; | |
function _fs() { | |
const data = _interopRequireDefault(require("fs")); |
node --expose_gc ./wrapper.js ./payload.js
Expected:
[Function: gc] true
[Function: gc]
Workflow:
Sort current dictionary in the order of Block > Cangjie code
node ./sort-dict.mjs /path/to/cangjie5.dict.yaml
Merge Cangjie5.txt
of https://github.com/Jackchows/Cangjie5 to cangjie5.dict.yaml
node ./merge-cangjie5-txt.mjs /path/to/Cangjie5.txt /path/to/cangjie5.dict.yaml
const glob = require("glob"); | |
const fs = require("fs"); | |
glob( | |
"./packages/babel-parser/test/fixtures/**/options.json", | |
{}, | |
function (err, files) { | |
if (err) throw err; | |
for (const file of files) { | |
const contents = JSON.stringify(JSON.parse(fs.readFileSync(file))); |
import Benchmark from "benchmark"; | |
import { report } from "./util.mjs"; | |
const suite = new Benchmark.Suite(); | |
const reservedWords = [ | |
"break", | |
"case", | |
"catch", | |
"continue", |
Note: The ExpressionStatement
and Program
node are omitted in the examples.
match (x) {
when ({ colour: "#000000" }) { "yes" }
else {
"no"