| 280 | } |
| 281 | } |
| 282 | void set(jsval val, JSContext* cx) { |
| 283 | if (val.isString()) { |
| 284 | this->set(val.toString(), cx); |
| 285 | } else { |
| 286 | buffer = NULL; |
| 287 | } |
| 288 | } |
| 289 | void set(JSString* str, JSContext* cx) { |
| 290 | string = str; |
| 291 | if (!cx) { |
no test coverage detected