Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 676534124
  • Loading branch information
Soy Authors authored and copybara-github committed Oct 11, 2024
1 parent cba8233 commit d59b8b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion javascript/soyutils_usegoog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2438,9 +2438,12 @@ const assertParamType = function(
condition, paramName, param, paramKind, jsDocTypeStr) {
if (asserts.ENABLE_ASSERTS && !condition) {
if (goog.DEBUG) {
const paramDebug = googDebug.deepExpose(param);
asserts.fail(
'expected ' + paramKind + ' ' + paramName + ' of type ' +
jsDocTypeStr + ', but got ' + googDebug.runtimeType(param) + '.');
jsDocTypeStr + ', but got ' + googDebug.runtimeType(param) + ' (' +
(paramDebug.constructor ? paramDebug.constructor.name + ' ' : '') +
paramDebug + '). ' + JSON.stringify(param));
}
asserts.fail('parameter type error. Enable DEBUG to see details.');
}
Expand Down

0 comments on commit d59b8b4

Please sign in to comment.