michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: Robert Sayre michael@0: */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 455380; michael@0: var summary = 'Do not assert with JIT: !lhs->isQuad() && !rhs->isQuad()'; michael@0: var actual = 'No Crash'; michael@0: var expect = 'No Crash'; michael@0: michael@0: printBugNumber(BUGNUMBER); michael@0: printStatus (summary); michael@0: michael@0: jit(true); michael@0: michael@0: const IS_TOKEN_ARRAY = michael@0: [0, 0, 0, 0, 0, 0, 0, 0, // 0 michael@0: 0, 0, 0, 0, 0, 0, 0, 0, // 8 michael@0: 0, 0, 0, 0, 0, 0, 0, 0, // 16 michael@0: 0, 0, 0, 0, 0, 0, 0, 0, // 24 michael@0: michael@0: 0, 1, 0, 1, 1, 1, 1, 1, // 32 michael@0: 0, 0, 1, 1, 0, 1, 1, 0, // 40 michael@0: 1, 1, 1, 1, 1, 1, 1, 1, // 48 michael@0: 1, 1, 0, 0, 0, 0, 0, 0, // 56 michael@0: michael@0: 0, 1, 1, 1, 1, 1, 1, 1, // 64 michael@0: 1, 1, 1, 1, 1, 1, 1, 1, // 72 michael@0: 1, 1, 1, 1, 1, 1, 1, 1, // 80 michael@0: 1, 1, 1, 0, 0, 0, 1, 1, // 88 michael@0: michael@0: 1, 1, 1, 1, 1, 1, 1, 1, // 96 michael@0: 1, 1, 1, 1, 1, 1, 1, 1, // 104 michael@0: 1, 1, 1, 1, 1, 1, 1, 1, // 112 michael@0: 1, 1, 1, 0, 1, 0, 1]; // 120 michael@0: michael@0: const headerUtils = { michael@0: normalizeFieldName: function(fieldName) michael@0: { michael@0: if (fieldName == "") michael@0: throw "error: empty string"; michael@0: michael@0: for (var i = 0, sz = fieldName.length; i < sz; i++) michael@0: { michael@0: if (!IS_TOKEN_ARRAY[fieldName.charCodeAt(i)]) michael@0: { michael@0: throw (fieldName + " is not a valid header field name!"); michael@0: } michael@0: } michael@0: michael@0: return fieldName.toLowerCase(); michael@0: } michael@0: }; michael@0: michael@0: headerUtils.normalizeFieldName("Host"); michael@0: michael@0: jit(false); michael@0: michael@0: reportCompare(expect, actual, summary);