code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
function enqueueTask(task) {
if (enqueueTaskImpl === null) {
try {
var requireString = ("require" + Math.random()).slice(0, 7);
var nodeRequire = module && module[requireString];
enqueueTaskImpl = nodeRequire.call(module, "timers").setI... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | enqueueTask | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function act(callback) {
{
var prevActScopeDepth = actScopeDepth;
actScopeDepth++;
if (ReactCurrentActQueue.current === null) {
ReactCurrentActQueue.current = [];
}
var prevIsBatchingLegacy = ReactCurrentActQ... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | act | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function popActScope(prevActScopeDepth) {
{
if (prevActScopeDepth !== actScopeDepth - 1) {
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
}
actScope... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | popActScope | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
{
var queue = ReactCurrentActQueue.current;
if (queue !== null) {
try {
flushActQueue(queue);
enqueueTask(function() {
if (q... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | recursivelyFlushAsyncActWork | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function flushActQueue(queue) {
{
if (!isFlushing) {
isFlushing = true;
var i = 0;
try {
for (; i < queue.length; i++) {
var callback = queue[i];
do {
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | flushActQueue | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function warn(format) {
{
{
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
printWarning("warn", format, args);
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warn | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function error(format) {
{
{
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
printWarning("error", format, ar... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | error | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function printWarning(level, format, args) {
{
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
var stack = ReactDebugCurrentFrame2.getStackAddendum();
if (stack !== "") {
format += "%s";
args = a... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | printWarning | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeChunk(destination, chunk) {
writeChunkAndReturn(destination, chunk);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeChunk | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeChunkAndReturn(destination, chunk) {
return destination.push(chunk);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeChunkAndReturn | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function stringToChunk(content) {
return content;
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | stringToChunk | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function stringToPrecomputedChunk(content) {
return content;
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | stringToPrecomputedChunk | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function typeName(value) {
{
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
return type;
}
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | typeName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function willCoercionThrow(value) {
{
try {
testStringCoercion(value);
return false;
} catch (e) {
return true;
}
}
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | willCoercionThrow | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function testStringCoercion(value) {
return "" + value;
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | testStringCoercion | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function checkAttributeStringCoercion(value, attributeName) {
{
if (willCoercionThrow(value)) {
error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", attributeName, typeName(value));
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | checkAttributeStringCoercion | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function checkCSSPropertyStringCoercion(value, propName) {
{
if (willCoercionThrow(value)) {
error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", propName, typeName(value));
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | checkCSSPropertyStringCoercion | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function checkHtmlStringCoercion(value) {
{
if (willCoercionThrow(value)) {
error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
return testStringCoer... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | checkHtmlStringCoercion | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function isAttributeNameSafe(attributeName) {
if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
return true;
}
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
return false;
}
i... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | isAttributeNameSafe | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
if (propertyInfo !== null && propertyInfo.type === RESERVED) {
return false;
}
switch (typeof value) {
case "function":
case "symbol":
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | shouldRemoveAttributeWithWarning | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | getPropertyInfo | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL2, removeEmptyString) {
this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
this.attributeName = attributeName;
this.attribut... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | PropertyInfoRecord | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
capitalize = function(token) {
return token[1].toUpperCase();
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | capitalize | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function prefixKey(prefix2, key) {
return prefix2 + key.charAt(0).toUpperCase() + key.substring(1);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | prefixKey | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function checkControlledValueProps(tagName, props) {
{
if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
error("You provided a `value` prop to a form field without an `onChange` handler. Th... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | checkControlledValueProps | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function isCustomComponent(tagName, props) {
if (tagName.indexOf("-") === -1) {
return typeof props.is === "string";
}
switch (tagName) {
case "annotation-xml":
case "color-profile":
case "font-face":
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | isCustomComponent | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function validateProperty(tagName, name) {
{
if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {
return true;
}
if (rARIACamel.test(name)) {
var ariaName = "aria-" + name.slice(4).toLowerCase();
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | validateProperty | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function warnInvalidARIAProps(type, props) {
{
var invalidProps = [];
for (var key in props) {
var isValid = validateProperty(type, key);
if (!isValid) {
invalidProps.push(key);
}
}
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnInvalidARIAProps | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function validateProperties(type, props) {
if (isCustomComponent(type, props)) {
return;
}
warnInvalidARIAProps(type, props);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | validateProperties | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function validateProperties$1(type, props) {
{
if (type !== "input" && type !== "textarea" && type !== "select") {
return;
}
if (props != null && props.value === null && !didWarnValueNull) {
didWarnValueNull = true;
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | validateProperties$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
warnUnknownProperties = function(type, props, eventRegistry) {
{
var unknownProps = [];
for (var key in props) {
var isValid = validateProperty$1(type, key, props[key], eventRegistry);
if (!isValid) {
unknownProps.push... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnUnknownProperties | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function validateProperties$2(type, props, eventRegistry) {
if (isCustomComponent(type, props)) {
return;
}
warnUnknownProperties(type, props, eventRegistry);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | validateProperties$2 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
camelize = function(string) {
return string.replace(hyphenPattern, function(_, character) {
return character.toUpperCase();
});
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | camelize | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
warnHyphenatedStyleName = function(name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
error(
"Unsupported style property %s. Did you mean %s?",
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnHyphenatedStyleName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
warnBadVendoredStyleName = function(name) {
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
return;
}
warnedStyleNames[name] = true;
error("Unsupported vendor-prefixed style property %s. Did you mean %s?", name, nam... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnBadVendoredStyleName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
warnStyleValueWithSemicolon = function(name, value) {
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
return;
}
warnedStyleValues[value] = true;
error(`Style property values shouldn't contain a semicolon. Try "%... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnStyleValueWithSemicolon | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
warnStyleValueIsNaN = function(name, value) {
if (warnedForNaNValue) {
return;
}
warnedForNaNValue = true;
error("`NaN` is an invalid value for the `%s` css style property.", name);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnStyleValueIsNaN | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
warnStyleValueIsInfinity = function(name, value) {
if (warnedForInfinityValue) {
return;
}
warnedForInfinityValue = true;
error("`Infinity` is an invalid value for the `%s` css style property.", name);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | warnStyleValueIsInfinity | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function escapeHtml(string) {
{
checkHtmlStringCoercion(string);
}
var str = "" + string;
var match = matchHtmlRegExp.exec(str);
if (!match) {
return str;
}
var escape;
var htm... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | escapeHtml | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function escapeTextForBrowser(text) {
if (typeof text === "boolean" || typeof text === "number") {
return "" + text;
}
return escapeHtml(text);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | escapeTextForBrowser | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function hyphenateStyleName(name) {
return name.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-");
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | hyphenateStyleName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function sanitizeURL(url) {
{
if (!didWarn && isJavaScriptProtocol.test(url)) {
didWarn = true;
error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe H... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | sanitizeURL | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function isArray(a) {
return isArrayImpl(a);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | isArray | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function escapeBootstrapScriptContent(scriptText) {
{
checkHtmlStringCoercion(scriptText);
}
return ("" + scriptText).replace(scriptRegex, scriptReplacer);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | escapeBootstrapScriptContent | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
scriptReplacer = function(match, prefix2, s, suffix) {
return "" + prefix2 + (s === "s" ? "\\u0073" : "\\u0053") + suffix;
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | scriptReplacer | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function createResponseState(identifierPrefix, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules) {
var idPrefix = identifierPrefix === void 0 ? "" : identifierPrefix;
var inlineScriptWithNonce = nonce === void 0 ? startInlineScript : stringToPrecomputedChunk('<script nonce="... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | createResponseState | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function createFormatContext(insertionMode, selectedValue) {
return {
insertionMode,
selectedValue
};
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | createFormatContext | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function getChildFormatContext(parentContext, type, props) {
switch (type) {
case "select":
return createFormatContext(HTML_MODE, props.value != null ? props.value : props.defaultValue);
case "svg":
return createFormatContext(SVG_MODE, nu... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | getChildFormatContext | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function assignSuspenseBoundaryID(responseState) {
var generatedID = responseState.nextSuspenseID++;
return stringToPrecomputedChunk(responseState.boundaryPrefix + generatedID.toString(16));
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | assignSuspenseBoundaryID | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function makeId(responseState, treeId, localId) {
var idPrefix = responseState.idPrefix;
var id = ":" + idPrefix + "R" + treeId;
if (localId > 0) {
id += "H" + localId.toString(32);
}
return id + ":";
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | makeId | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function encodeHTMLTextNode(text) {
return escapeTextForBrowser(text);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | encodeHTMLTextNode | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushTextInstance(target, text, responseState, textEmbedded) {
if (text === "") {
return textEmbedded;
}
if (textEmbedded) {
target.push(textSeparator);
}
target.push(stringToChunk(encodeHTMLTextNode(text)));
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushTextInstance | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushSegmentFinale(target, responseState, lastPushedText, textEmbedded) {
if (lastPushedText && textEmbedded) {
target.push(textSeparator);
}
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushSegmentFinale | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function processStyleName(styleName) {
var chunk = styleNameCache.get(styleName);
if (chunk !== void 0) {
return chunk;
}
var result = stringToPrecomputedChunk(escapeTextForBrowser(hyphenateStyleName(styleName)));
styleNameCache.set(s... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | processStyleName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStyle(target, responseState, style) {
if (typeof style !== "object") {
throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
}
var isF... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStyle | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushAttribute(target, responseState, name, value) {
switch (name) {
case "style": {
pushStyle(target, responseState, value);
return;
}
case "defaultValue":
case "defaultChecked":
ca... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushAttribute | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushInnerHTML(target, innerHTML, children) {
if (innerHTML != null) {
if (children != null) {
throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
}
if (typeof innerHTML !== "object" || !("__html" ... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushInnerHTML | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function checkSelectProp(props, propName) {
{
var value = props[propName];
if (value != null) {
var array = isArray(value);
if (props.multiple && !array) {
error("The `%s` prop supplied to <select> must be an array if ... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | checkSelectProp | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartSelect(target, props, responseState) {
{
checkControlledValueProps("select", props);
checkSelectProp(props, "value");
checkSelectProp(props, "defaultValue");
if (props.value !== void 0 && props.defaultValue !== void 0 && !di... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartSelect | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function flattenOptionChildren(children) {
var content = "";
React3.Children.forEach(children, function(child) {
if (child == null) {
return;
}
content += child;
{
if (!didWarnInvalidOptionChi... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | flattenOptionChildren | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartOption(target, props, responseState, formatContext) {
var selectedValue = formatContext.selectedValue;
target.push(startChunkForTag("option"));
var children = null;
var value = null;
var selected = null;
var innerHTML ... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartOption | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushInput(target, props, responseState) {
{
checkControlledValueProps("input", props);
if (props.checked !== void 0 && props.defaultChecked !== void 0 && !didWarnDefaultChecked) {
error("%s contains an input of type %s with both checked and defaul... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushInput | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartTextArea(target, props, responseState) {
{
checkControlledValueProps("textarea", props);
if (props.value !== void 0 && props.defaultValue !== void 0 && !didWarnDefaultTextareaValue) {
error("Textarea elements must be either controlled or ... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartTextArea | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushSelfClosing(target, props, tag, responseState) {
target.push(startChunkForTag(tag));
for (var propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
var propValue = props[propKey];
if (propValue == null) {
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushSelfClosing | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartMenuItem(target, props, responseState) {
target.push(startChunkForTag("menuitem"));
for (var propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
var propValue = props[propKey];
if (propValue == null) {
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartMenuItem | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartTitle(target, props, responseState) {
target.push(startChunkForTag("title"));
var children = null;
for (var propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
var propValue = props[propKey];
if (p... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartTitle | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartGenericElement(target, props, tag, responseState) {
target.push(startChunkForTag(tag));
var children = null;
var innerHTML = null;
for (var propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
var propV... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartGenericElement | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartCustomElement(target, props, tag, responseState) {
target.push(startChunkForTag(tag));
var children = null;
var innerHTML = null;
for (var propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
var propVa... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartCustomElement | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartPreformattedElement(target, props, tag, responseState) {
target.push(startChunkForTag(tag));
var children = null;
var innerHTML = null;
for (var propKey in props) {
if (hasOwnProperty.call(props, propKey)) {
var ... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartPreformattedElement | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function startChunkForTag(tag) {
var tagStartChunk = validatedTagCache.get(tag);
if (tagStartChunk === void 0) {
if (!VALID_TAG_REGEX.test(tag)) {
throw new Error("Invalid tag: " + tag);
}
tagStartChunk = stringToPrecomputedCh... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | startChunkForTag | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushStartInstance(target, type, props, responseState, formatContext) {
{
validateProperties(type, props);
validateProperties$1(type, props);
validateProperties$2(type, props, null);
if (!props.suppressContentEditableWarning && props.... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushStartInstance | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushEndInstance(target, type, props) {
switch (type) {
case "area":
case "base":
case "br":
case "col":
case "embed":
case "hr":
case "img":
case "input":
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushEndInstance | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeCompletedRoot(destination, responseState) {
var bootstrapChunks = responseState.bootstrapChunks;
var i = 0;
for (; i < bootstrapChunks.length - 1; i++) {
writeChunk(destination, bootstrapChunks[i]);
}
if (i < bootstrapCh... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeCompletedRoot | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writePlaceholder(destination, responseState, id) {
writeChunk(destination, placeholder1);
writeChunk(destination, responseState.placeholderPrefix);
var formattedID = stringToChunk(id.toString(16));
writeChunk(destination, formattedID);
retur... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writePlaceholder | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeStartCompletedSuspenseBoundary(destination, responseState) {
return writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeStartCompletedSuspenseBoundary | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeStartPendingSuspenseBoundary(destination, responseState, id) {
writeChunk(destination, startPendingSuspenseBoundary1);
if (id === null) {
throw new Error("An ID must have been assigned before we can complete the boundary.");
}
writeCh... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeStartPendingSuspenseBoundary | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeStartClientRenderedSuspenseBoundary(destination, responseState, errorDigest, errorMesssage, errorComponentStack) {
var result;
result = writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
writeChunk(destination, clientRenderedSuspenseBoundaryErr... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeStartClientRenderedSuspenseBoundary | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeEndCompletedSuspenseBoundary(destination, responseState) {
return writeChunkAndReturn(destination, endSuspenseBoundary);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeEndCompletedSuspenseBoundary | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeEndPendingSuspenseBoundary(destination, responseState) {
return writeChunkAndReturn(destination, endSuspenseBoundary);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeEndPendingSuspenseBoundary | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeEndClientRenderedSuspenseBoundary(destination, responseState) {
return writeChunkAndReturn(destination, endSuspenseBoundary);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeEndClientRenderedSuspenseBoundary | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeStartSegment(destination, responseState, formatContext, id) {
switch (formatContext.insertionMode) {
case ROOT_HTML_MODE:
case HTML_MODE: {
writeChunk(destination, startSegmentHTML);
writeChunk(destination, responseState.seg... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeStartSegment | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeEndSegment(destination, formatContext) {
switch (formatContext.insertionMode) {
case ROOT_HTML_MODE:
case HTML_MODE: {
return writeChunkAndReturn(destination, endSegmentHTML);
}
case SVG_MODE: {
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeEndSegment | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeCompletedSegmentInstruction(destination, responseState, contentSegmentID) {
writeChunk(destination, responseState.startInlineScript);
if (!responseState.sentCompleteSegmentFunction) {
responseState.sentCompleteSegmentFunction = true;
writeChunk(d... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeCompletedSegmentInstruction | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeCompletedBoundaryInstruction(destination, responseState, boundaryID, contentSegmentID) {
writeChunk(destination, responseState.startInlineScript);
if (!responseState.sentCompleteBoundaryFunction) {
responseState.sentCompleteBoundaryFunction = true;
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeCompletedBoundaryInstruction | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeClientRenderBoundaryInstruction(destination, responseState, boundaryID, errorDigest, errorMessage, errorComponentStack) {
writeChunk(destination, responseState.startInlineScript);
if (!responseState.sentClientRenderFunction) {
responseState.sentClientRenderFunct... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeClientRenderBoundaryInstruction | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function escapeJSStringsForInstructionScripts(input) {
var escaped = JSON.stringify(input);
return escaped.replace(regexForJSStringsInScripts, function(match) {
switch (match) {
case "<":
return "\\u003c";
case "\u2028":... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | escapeJSStringsForInstructionScripts | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function createResponseState$1(generateStaticMarkup, identifierPrefix) {
var responseState = createResponseState(identifierPrefix, void 0);
return {
// Keep this in sync with ReactDOMServerFormatConfig
bootstrapChunks: responseState.bootstrapChunks,
... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | createResponseState$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function createRootFormatContext() {
return {
insertionMode: HTML_MODE,
// We skip the root mode because we don't want to emit the DOCTYPE in legacy mode.
selectedValue: null
};
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | createRootFormatContext | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushTextInstance$1(target, text, responseState, textEmbedded) {
if (responseState.generateStaticMarkup) {
target.push(stringToChunk(escapeTextForBrowser(text)));
return false;
} else {
return pushTextInstance(target, text, responseStat... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushTextInstance$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function pushSegmentFinale$1(target, responseState, lastPushedText, textEmbedded) {
if (responseState.generateStaticMarkup) {
return;
} else {
return pushSegmentFinale(target, responseState, lastPushedText, textEmbedded);
}
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | pushSegmentFinale$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeStartCompletedSuspenseBoundary$1(destination, responseState) {
if (responseState.generateStaticMarkup) {
return true;
}
return writeStartCompletedSuspenseBoundary(destination);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeStartCompletedSuspenseBoundary$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeStartClientRenderedSuspenseBoundary$1(destination, responseState, errorDigest, errorMessage, errorComponentStack) {
if (responseState.generateStaticMarkup) {
return true;
}
return writeStartClientRenderedSuspenseBoundary(destination, responseState,... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeStartClientRenderedSuspenseBoundary$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeEndCompletedSuspenseBoundary$1(destination, responseState) {
if (responseState.generateStaticMarkup) {
return true;
}
return writeEndCompletedSuspenseBoundary(destination);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeEndCompletedSuspenseBoundary$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function writeEndClientRenderedSuspenseBoundary$1(destination, responseState) {
if (responseState.generateStaticMarkup) {
return true;
}
return writeEndClientRenderedSuspenseBoundary(destination);
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | writeEndClientRenderedSuspenseBoundary$1 | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function getIteratorFn(maybeIterable) {
if (maybeIterable === null || typeof maybeIterable !== "object") {
return null;
}
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
if (... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | getIteratorFn | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function getWrappedName(outerType, innerType, wrapperName) {
var displayName = outerType.displayName;
if (displayName) {
return displayName;
}
var functionName = innerType.displayName || innerType.name || "";
return functionName !== "... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | getWrappedName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function getContextName(type) {
return type.displayName || "Context";
} | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | getContextName | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function getComponentNameFromType(type) {
if (type == null) {
return null;
}
{
if (typeof type.tag === "number") {
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | getComponentNameFromType | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function disableLogs() {
{
if (disabledDepth === 0) {
prevLog = console.log;
prevInfo = console.info;
prevWarn = console.warn;
prevError = console.error;
prevGroup = console.group;
p... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | disableLogs | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
function reenableLogs() {
{
disabledDepth--;
if (disabledDepth === 0) {
var props = {
configurable: true,
enumerable: true,
writable: true
};
Object.definePrope... | Sets a subset of the state. This only exists because _pendingState is
internal. This provides a merging strategy that is not available to deep
properties which is confusing. TODO: Expose pendingState or don't use it
during the merge.
@param {ReactClass} publicInstance The instance that should rerender.
@param {object}... | reenableLogs | javascript | wasmerio/winterjs | benchmark/complex.js | https://github.com/wasmerio/winterjs/blob/master/benchmark/complex.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.