MCPcopy Create free account
hub / github.com/nodejs/node / make_message

Function make_message

deps/v8/test/wasm-js/third_party/testharness.js:3506–3518  ·  view source on GitHub ↗
(function_name, description, error, substitutions)

Source from the content-addressed store, hash-verified

3504 expose(OptionalFeatureUnsupportedError, "OptionalFeatureUnsupportedError");
3505
3506 function make_message(function_name, description, error, substitutions)
3507 {
3508 for (var p in substitutions) {
3509 if (substitutions.hasOwnProperty(p)) {
3510 substitutions[p] = format_value(substitutions[p]);
3511 }
3512 }
3513 var node_form = substitute(["{text}", "${function_name}: ${description}" + error],
3514 merge({function_name:function_name,
3515 description:(description?description + " ":"")},
3516 substitutions));
3517 return node_form.slice(1).join("");
3518 }
3519
3520 function filter(array, callable, thisObj) {
3521 var rv = [];

Callers 1

assertFunction · 0.70

Calls 6

format_valueFunction · 0.70
substituteFunction · 0.70
mergeFunction · 0.70
sliceMethod · 0.65
hasOwnPropertyMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected