This article covers features introduced in SpiderMonkey 1.8.5
Assert a string is flattened.
Syntax
static MOZ_ALWAYS_INLINE JSFlatString *
JS_ASSERT_STRING_IS_FLAT(JSString *str)
{
MOZ_ASSERT(JS_StringIsFlat(str));
return (JSFlatString *)str;
}
Name | Type | Description |
---|---|---|
str |
JSString * |
String to examine. |
Description
JS_ASSERT_STRING_IS_FLAT
asserts the string is flattened, and returns a pointer to JSFlatString
.