]> git.saurik.com Git - cycript.git/blobdiff - Driver.cpp
Print the sort-of stack trace from JavaScriptCore.
[cycript.git] / Driver.cpp
index 4bac2c2a920f1092c16e07f179ed0e25da5556ff..031625c5dac72512cb738b939697f8c3cd5611cc 100644 (file)
 /* }}} */
 
 #include "Driver.hpp"
-#include "Parser.hpp"
+#include "Syntax.hpp"
 
 bool CYParser(CYPool &pool, bool debug);
 
-CYDriver::CYDriver(CYPool &pool, std::istream &data, const std::string &filename) :
+CYDriver::CYDriver(CYPool &pool, std::streambuf &data, const std::string &filename) :
     pool_(pool),
     newline_(false),
     last_(false),
-    next_(false),
     data_(data),
     debug_(0),
     strict_(false),
@@ -41,6 +40,7 @@ CYDriver::CYDriver(CYPool &pool, std::istream &data, const std::string &filename
 {
     in_.push(false);
     return_.push(false);
+    super_.push(false);
     template_.push(false);
     yield_.push(false);