From 90a20595af673e6915e35bce0cba9dbfeeb52564 Mon Sep 17 00:00:00 2001 From: vamsi Date: Sun, 29 Mar 2026 13:31:19 +0530 Subject: [PATCH] Fix TypeError in nouveau for stored index types This PR fixes a string interpolation bug in nouveau.js where the raw data payload (value) was inadvertently concatenated into the runtime TypeError string when catching invalid 'stored' index types. Instead of evaluating to a confusing literal message or risking huge allocations, it now securely statically logs the parameter's variable name alongside typeof value. --- share/server/nouveau.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/server/nouveau.js b/share/server/nouveau.js index 8c75d4a2502..eb12bfef929 100644 --- a/share/server/nouveau.js +++ b/share/server/nouveau.js @@ -75,7 +75,7 @@ var Nouveau = (function () { case 'stored': var value = arguments[2]; if (typeof value != 'number' && typeof value != 'string') { - throw ({ name: 'TypeError', message: 'type of ' + value + ' must be a string or number' }); + throw ({ name: 'TypeError', message: 'type of value must be a string or number not ' + typeof value }); } index_results.push({ '@type': type,