if:
let threw = true;
try {
module.load(filename);
threw = false;
} catch (err) {
rekeySourceMap(Module._cache[filename], err);
throw err;
syntax = "proto3"; | |
import "google/protobuf/timestamp.proto"; | |
message ChangeLog { | |
// Repository in form org/repo. | |
string repository = 1; | |
// When was an entry last added to changelog.json. | |
google.protobuf.Timestamp update_time = 5; | |
// Each CHANGELOG entry corresponds to a release on GitHub. |
import {parseArgs} from 'node:util'; | |
class ArgumentsMissingError extends Error { | |
constructor(values) { | |
let msg; | |
if (!values.variable1 && !values.variable2) { | |
msg = 'both variable1 and variable2 must be provided'; | |
} else { | |
msg = `${!values.variable1 ? 'variable1' : 'variable2'} must be provided`; | |
} |
on: | |
push: | |
branches: | |
- main | |
name: push-interest-changes | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
<testsuite name="Mocha Tests" tests="640" failures="0" errors="2" skipped="0" timestamp="Sat, 30 May 2020 00:28:04 GMT" time="7.529"> | |
<testcase classname="" name="should expose yargs-parser as Parser" time="0"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warn if wrong type is provided for optional argument" time="0.002"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is valid" time="0.001"/> | |
<testcase classname="Argsert" name="warns if required argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warns if required argument is of wrong type" time="0.001"/> | |
<testcase classname="Argsert" name="supports a combination of required and optional arguments" time="0.001"/> | |
<testcase classname="Argsert" name="warns if too many arguments are provided" time="0.001"/> | |
<testcase classname="Argsert" name="warn with argument position if wrong type is provided for argument" time="0.00 |
<testsuite name="Mocha Tests" tests="640" failures="0" errors="2" skipped="0" timestamp="Sat, 30 May 2020 00:28:04 GMT" time="7.529"> | |
<testcase classname="" name="should expose yargs-parser as Parser" time="0"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warn if wrong type is provided for optional argument" time="0.002"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is valid" time="0.001"/> | |
<testcase classname="Argsert" name="warns if required argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warns if required argument is of wrong type" time="0.001"/> | |
<testcase classname="Argsert" name="supports a combination of required and optional arguments" time="0.001"/> | |
<testcase classname="Argsert" name="warns if too many arguments are provided" time="0.001"/> | |
<testcase classname="Argsert" name="warn with argument position if wrong type is provided for argument" time="0.00 |
TAP version 13 | |
1..169 | |
ok 1 parallel/test-fs-access | |
--- | |
duration_ms: 0.87 | |
... | |
ok 2 parallel/test-fs-append-file | |
--- | |
duration_ms: 0.86 | |
... |
<?xml version="1.0"?> | |
<testsuites> | |
<testsuite tests="2833" skipped="34" failures="1" errors="0" name="Default"> | |
<testcase name="#1 parallel/test-accessor-properties"/> | |
<testcase name="#2 parallel/test-arm-math-illegal-instruction"/> | |
<testcase name="#3 parallel/test-assert"/> | |
<testcase name="#4 parallel/test-assert-async"/> | |
<testcase name="#5 parallel/test-assert-builtins-not-read-from-filesystem"/> | |
<testcase name="#6 parallel/test-assert-checktag"/> | |
<testcase name="#7 parallel/test-assert-deep"/> |
// This file is a modified version of: | |
// https://cs.chromium.org/chromium/src/v8/tools/SourceMap.js?rcl=dd10454c1d | |
// from the V8 codebase. Logic specific to WebInspector is removed and linting | |
// is made to match the Node.js style guide. | |
// Copyright 2013 the V8 project authors. All rights reserved. | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are | |
// met: | |
// |
if:
let threw = true;
try {
module.load(filename);
threw = false;
} catch (err) {
rekeySourceMap(Module._cache[filename], err);
throw err;
To begin collecting source-maps, node must be run with --enable-source-maps
(or with NODE_V8_COVERAGE
set).
At which point, the new built-in module source_map
can be used to interact with the source-map cache:
// tooling has one interface into the source-map cache, URIs, any type of module that we
// wish to attach source-maps to (ESM, CJS, evals, data-urls) needs to have a methodlogy
// for setting a URI; Two different source-maps cannot be stored at the same URI.