Changeset 54571 in webkit for trunk/JavaScriptCore/runtime/JSStringBuilder.h
- Timestamp:
- Feb 9, 2010, 3:26:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSStringBuilder.h
r54518 r54571 35 35 class JSStringBuilder : public StringBuilder { 36 36 public: 37 JSValue releaseJSString(ExecState* exec)37 JSValue build(ExecState* exec) 38 38 { 39 39 buffer.shrinkToFit(); … … 41 41 return throwOutOfMemoryError(exec); 42 42 return jsString(exec, UString::adopt(buffer)); 43 } 44 45 private: 46 // Make attempts to call this compile error - if you only wanted a UString, 47 // Why didn't you just use a StringBuilder?! (This may change, maybe at some 48 // point in the future we'll need to start building a string not knowing whether 49 // we'll want a UString or a JSValue - but until we have this requirement, 50 // block this). 51 UString build() 52 { 53 ASSERT_NOT_REACHED(); 54 return StringBuilder::build(); 43 55 } 44 56 };
Note:
See TracChangeset
for help on using the changeset viewer.