Home | History | Annotate | Download | only in samples

Lines Matching refs:script

84   // Process function of the JavaScript script given as an argument.
85 JsHttpRequestProcessor(Isolate* isolate, Local<String> script)
86 : isolate_(isolate), script_(script) {}
94 // Execute the script associated with this processor and extract the
96 bool ExecuteScript(Local<String> script);
154 // Execute the script and fetch the Process method.
183 // Compile and run the script
187 // The script compiled and ran correctly. Now we fetch out the
212 bool JsHttpRequestProcessor::ExecuteScript(Local<String> script) {
215 // We're just about to compile the script; set up an error handler to
216 // catch any exceptions the script might throw.
221 // Compile the script and check for errors.
222 Local<Script> compiled_script;
223 if (!Script::Compile(context, script).ToLocal(&compiled_script)) {
226 // The script failed to compile; bail out.
230 // Run the script!
236 // Running the script failed; bail out.
688 fprintf(stderr, "No script was specified.\n");