Home
last modified time | relevance | path

Searched refs:NOT_HTTP_TOKEN_CODE_POINT (Results 1 – 2 of 2) sorted by relevance

/third_party/node/test/parallel/
Dtest-mime-api.js9 const NOT_HTTP_TOKEN_CODE_POINT = ','; constant
55 assert.throws(() => mime.type = NOT_HTTP_TOKEN_CODE_POINT, /type/i);
56 assert.throws(() => mime.type = `${NOT_HTTP_TOKEN_CODE_POINT}/`, /type/i);
57 assert.throws(() => mime.type = `/${NOT_HTTP_TOKEN_CODE_POINT}`, /type/i);
78 assert.throws(() => mime.subtype = NOT_HTTP_TOKEN_CODE_POINT, /subtype/i);
80 () => mime.subtype = `${NOT_HTTP_TOKEN_CODE_POINT};`,
83 () => mime.subtype = `;${NOT_HTTP_TOKEN_CODE_POINT}`,
154 assert.throws(() => params.set(`${NOT_HTTP_TOKEN_CODE_POINT}=`, 'x'), /parameter name/i);
155 assert.throws(() => params.set(`${NOT_HTTP_TOKEN_CODE_POINT}x`, 'x'), /parameter name/i);
156 assert.throws(() => params.set(`x${NOT_HTTP_TOKEN_CODE_POINT}`, 'x'), /parameter name/i);
/third_party/node/lib/internal/
Dmime.js19 const NOT_HTTP_TOKEN_CODE_POINT = /[^!#$%&'*+\-.^_`|~A-Za-z0-9]/g; constant
48 NOT_HTTP_TOKEN_CODE_POINT);
70 NOT_HTTP_TOKEN_CODE_POINT);
118 const encode = SafeStringPrototypeSearch(value, NOT_HTTP_TOKEN_CODE_POINT) !== -1;
147 const invalidNameIndex = SafeStringPrototypeSearch(name, NOT_HTTP_TOKEN_CODE_POINT);
270 NOT_HTTP_TOKEN_CODE_POINT) === -1 &&
322 const invalidTypeIndex = SafeStringPrototypeSearch(v, NOT_HTTP_TOKEN_CODE_POINT);
335 const invalidSubtypeIndex = SafeStringPrototypeSearch(v, NOT_HTTP_TOKEN_CODE_POINT);