| 478 | } |
| 479 | |
| 480 | static std::string RemoveFileExt(const std::string& filePath) { |
| 481 | size_t pos = filePath.rfind('.'); |
| 482 | if (0 < pos) { |
| 483 | return filePath.substr(0, pos); |
| 484 | } |
| 485 | else { |
| 486 | return filePath; |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | JSBool ScriptingCore::runScript(const char *path, JSObject* global, JSContext* cx) |
| 491 | { |